This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes PHP and the fly likes php shopping cart trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "php shopping cart trouble" Watch "php shopping cart trouble" New topic
Author

php shopping cart trouble

gong pex
Ranch Hand

Joined: Oct 27, 2011
Posts: 41
Hello everyone,

please go to my site : click here

if you click "BUY NOW" at product on this site twice or more it shown duplicated.

Whereas normally when user click to buy product , it's supposed increase the quantity , and not duplicated.

Q : How to fix this problem?

please someone help me

Thanks

Note : if you need something please tell me.

Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

Hint: in your code, when someone clicks Buy Now a second time, does your code look to see if that item already appears in the shopping cart and if so just increments the quantity?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: php shopping cart trouble