aspose file tools
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 Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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?
 
Don't get me started about those stupid light bulbs.
 
subject: php shopping cart trouble