Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Embeddable Fully Functional Shopping Cart.

Hey everyone, I would like to create an fully functional embeddable shopping cart solution for an Adobe Muse website I'm working on. By fully functional, I mean I would like to be able to create products, buy buttons for those products and a cart for users to be able to successfully view/add/remove those products within the cart. I would like to avoid backend processing by using something like stripe to handle the payments for me. So, seeing as I have no clue what I need to know to do this I'd figure I'd ask you guys where I need to start what courses I need to complete in order to successfully complete my project


2 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

If you are deploying to Business Catalyst then you can have the option to turn on e-commerce and then you'll have code snippets that you can insert into your Muse page. Business Catalyst E-commerce example

If not, then are you really stuck on using Muse? Muse doesn't like PHP so you may consider exporting your site out of Muse when done and then taking over it manually from there.

Be sure to check out Building a basic PHP Application (in other words, making a simple e-commerce store).

If you want to stick with Muse and do it all there, you can try using Angularjs and inserting code snippets into Muse. I have neither used Angularjs within muse or built a complete shopping cart from Angularjs, but since Muse works better with javascript better than php, you may be able to find something there.
Tutorial on a shopping cart with Angularjs

If you want to use Stripe besure to watch the video on using the Stripe API

Sorry there can't be a more direct answer, but e-commerce is not what Muse was built for so you might find you are using the wrong tools for the job. IMO the best bet if you already have something in Muse you like, is to export the site out and then add your e-commerce after the fact. Start here Building a basic PHP Application (in other words, making a simple e-commerce store) and learn how a basic store works and then decide where you want to go.

hope that helps

Thanks Andrew! I'm really hoping to stay inside of Muse for this particular project so I think the links that you provided me on js and Stripe will work best. Thus far, I've looked at solutions like Shoplocket which actually go ahead supply you with embeddable product buttons/links and a lightbox checkout, but don't supply a "view cart option". I'm pretty sure they use javascript in order to do this. I'm figuring if I can find out what I need to learn to create an app that allow the user to add , view, & manipulate items into a cart on the frontend then I can use Stripe,Paypal, etc. as a checkout solution.