transformer, When i click on add to cart button anonymously the wrong item is displayed in shopping cart circuit board, but when I am logged in as administrator everything works great. please could some body please help. click on related attachments

CommentFileSizeAuthor
transformer.png228.56 KBStealth
circuit board.png621.43 KBStealth

Comments

Stealth created an issue. See original summary.

tr’s picture

Priority: Major » Normal

How did you create that page with the two products? Is that the Ubercart catalog, a custom View, or something else? Because there are two add-to-cart buttons (two forms) on that page, the markup needs to distinguish between them so the submit handler can figure out which button was pressed. This is done properly by Ubercart out of the box, but if you're building your page with Panels or something like that you may need to ensure that the add-to-cart forms have the correct id attached to them.

If you go to /node on your site, you should see a list of all node (including product) teasers - you should see multiple products on that page. Do the add-to-cart buttons on that page work properly for you? They should.

Stealth’s picture

I went to /node and added some items and they added correctly. the add to cart button to the right is a views slide show for best sellers should I get rid of the views slide show? TR Thank you for the response. I think I resolved the issue, in panels node: sell price, I disabled simple cache, and everything seems to be working. Thank you TR for Your time.

tr’s picture

Status: Active » Fixed

Also be aware of #391534: Fails to add to cart when using views global:random display
Drupal forms (such as the add-to-cart button/form) don't work properly in random Views. Perhaps that's also the bug you're seeing with slide show.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.