News:

Support the VirtueMart project and become a member

Main Menu

Cart doubling up

Started by PaulButler, February 22, 2015, 21:18:21 PM

Previous topic - Next topic

PaulButler

Joomla! 3.3.6
Virtuemart 3.0.6

I am seeing some strange behaviour when adding selections into a cart. I have a series of multi-variants for sizes of T-Shirts some of which have stock and others don't. When I select a variant with stock the "Add to Cart" button appears. I leave the number at 1 and press it.

I then get 2 of the selected item added into my cart.

Why and/or how is this happening? I have looked across the web and found similar type things that have happened and the advice is to go to Virtuemart 3.0.6 which is what my site is running.

Is it something strange like the parent product is also added as well when I select the child?

Any ideas anybody?

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

PaulButler

Thanks Kelvyn ; I'd seen that post and had the same behaviour re the increment. I am also running 3.0.6

What I see is that when I press the "Add to Cart" button that it almost seems as if it is fired twice so instead of one item being added to the cart I get two.

I have been looking through the code although PHP is not a language I am familiar with but can't spot anything obvious.


PaulButler

So here we go then ; I select a product and press "Add to Cart"

It looks as if it is duplicating everything :

updateDynamicUpdateListeners A Object[a.previous-page /index.ph...ry_id=15]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners A Object[a.next-page /index.ph...ry_id=15]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners SELECT Object[select#10258-76customProductDatacvard0.vm-chzn-select.cvselection.no-vm-bind.chzn-done]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners SELECT Object[select#10258-76customProductDatacvard1.vm-chzn-select.cvselection.no-vm-bind.chzn-done]
dynupda...er=8740 (line 76)
quantityInput Object[input.quantity-input.js-recalculate attribute value = "1"]
vmprice...er=8740 (line 131)
Execute bind to addtocart Object[input.addtocart-button attribute value = "Add to Cart"]
vmprice...er=8740 (line 184)
quantityInput Object[input.quantity-input.js-recalculate attribute value = "1"]
vmprice...er=8740 (line 131)
Execute bind to addtocart Object[input.addtocart-button attribute value = "Add to Cart"]
vmprice...er=8740 (line 184)

updateDynamicUpdateListeners A Object[a.previous-page /index.ph...ry_id=15]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners A Object[a.next-page /index.ph...ry_id=15]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners SELECT Object[select#10258-76customProductDatacvard0.vm-chzn-select.cvselection.no-vm-bind.chzn-done]
dynupda...er=8740 (line 76)
updateDynamicUpdateListeners SELECT Object[select#10258-76customProductDatacvard1.vm-chzn-select.cvselection.no-vm-bind.chzn-done]

What can I do to identify why this is happening and stop it?

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/