File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

php shopping cart trouble

 
gong pex
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
Linux PHP Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic