Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add a color division when we click to the brush option. #10

Open
haseenaL opened this issue Jul 8, 2019 · 2 comments
Open

how to add a color division when we click to the brush option. #10

haseenaL opened this issue Jul 8, 2019 · 2 comments

Comments

@haseenaL
Copy link

haseenaL commented Jul 8, 2019

how to save a design and how to add the functionality of the checkout process.

@Yogi1994
Copy link
Member

Yogi1994 commented Jul 8, 2019

@haseenaL

To save the images, as per the code line https://github.com/Wicklers/Tee-Designer/blob/cd884052415ad3c3a885c687b8c9ab66ff9085df/tdesignAPI/new_applit.php#L359
I think you should be able to get the image data from those two hidden inputs, and you can convert this data to the image.

@Yogi1994
Copy link
Member

Yogi1994 commented Jul 8, 2019

To add a color division you need to do two things:

  1. add images of the tee shirt you need to add new images in the image directory. for example, https://github.com/Wicklers/Tee-Designer/tree/master/tdesignAPI/images/product/tee. few extra colors are already present.
  2. to enable their visibility of these colors add new code here https://github.com/Wicklers/Tee-Designer/blob/cd884052415ad3c3a885c687b8c9ab66ff9085df/tdesignAPI/js/mainapp.js#L75.
    and here https://github.com/Wicklers/Tee-Designer/blob/cd884052415ad3c3a885c687b8c9ab66ff9085df/tdesignAPI/new_applit.php#L90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants