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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript

ajax and php cart plugin

Hi everybody

Today i have downloaded jcart plugin for cart purpose. i just follow all the guide to setup , but it

seems that finally the product cannot be added , and also many error supression, anyone had

used it before>? how to tackle this problem? Thank you.

9 Answers

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

I haven't used jcart before. Are you using it as a plugin for another piece of software, something like WordPress?

no i just use it for my custom make php and mysql shopping cart

hi Randy do you have any suggestion on what to use for the cart, in the previous week , i feel very frustrated in finding those useful cart plugin , but it seems that jcart is useful , but many error bugs and php error message

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

What kind of products are you selling? What's the volume (not exact numbers, but are selling dozens or hundreds or millions of units)? Is this for a personal site, a non-profit site, or a business site?

i am a student that need to submit a eshop homework that selling flowers, but i am stuck in the part of the cart, don't know what plugin to use to do the cart

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

Hmmm ... I'm now sure what's best for that.

  • In my tutorials, I show how to use PayPal's shopping cart, but I don't know if that would be acceptable for your homework assignment.
  • If you are looking for software that you can install and start using, I would probably recommend WooCommerce running on WordPress. We have a workshop at Treehouse on using that: link.
  • If you could use a hosted solution, I'd recommend something like ShopLocket.

also i am little bit ambiguous about session , for example i have a session call $_SESSION['cart'], i

want to store the quantity , product id inside it, then is it i need to make another session call

$_SESSION['quantity']...................... or $_SESSION['cart']['quantity']; May you tell me the theory

behind thank you.

also i have a problem in getting SESSION parameter,

e.g. As you know that usually we include those repetitive code header footer in a separate

folder like header.php

do you have skype?

Thank you. i am available now ^^

also i am not using wordpress, just simple php and mysql to make a cart only

do you have email and i send my homework to you to have a look? thank you.

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

Unfortunately, I can't receive your school homework and look at it. But if you could post some code and a link with a specific question or issue here, someone will take a look at it and might be able to help. You really want to narrow down the issue as best you can; very broad and general questions are nearly impossible to troubleshoot.