Wicklers / Tee-Designer

A Simple T-shirt Designing Web App to create custom tees.
156 stars 92 forks source link

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

Open haseenaL opened 5 years ago

haseenaL commented 5 years ago

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

Yogi1994 commented 5 years ago

@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 commented 5 years ago

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