Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

hbh Humble but hungry
hbh Humble but hungry
1,095 Points

how/what type of code would you use to create a way to let people visually customize products on a website?

I wish to be able to let customers choose and design/customize their own variations of the products that i offer, but i would like to allow them to be able to drag and drop and see the changes in real time. Is there a specific coding language to use to preform this task or is it just a plug-in?

3 Answers

Kevin Korte
Kevin Korte
28,135 Points

Sounds like a job for javascript!

hbh Humble but hungry
hbh Humble but hungry
1,095 Points

Thanks for the reply. Is it only javascript? Here's an example of what i'm going for "http://www.personalityjewelry.com/index.php/customize.your.own.html"

Kevin Korte
Kevin Korte
28,135 Points

No, there will be multiple languages involved. There is no direct path, it just depends on what you decide to do. You'll need some sort of back end to receive the orders or customized product order. That could be javascript, php, ruby, python, and more.

You'll likely need a database to store this information

And than you'll have your typical html, css, and the interactivity can come from javascript, or using the html api for canvas might be another solution you could look at. I haven't used canvas too much so I'm not sure how well it would work for your needs, but it's something to consider.

hbh Humble but hungry
hbh Humble but hungry
1,095 Points

Hi,i just had another quick question. Is there any existing open source code to possibly do this?