VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Aelric on December 09, 2014, 18:48:09 PM

Title: [Upgrade virtuemart 2.6.12] “Add to cart” button doesn't work anymore [Resolved]
Post by: Aelric on December 09, 2014, 18:48:09 PM
Greetings,

Further to my Virtuemart update, from 2.0.20b at 2.6.12, I have a problem. On the product details page, orders are placed in my cart, but it doesn't work when I want to order directly with the "Add to cart" button displayed in the featured products module. Before, "Add to cart" button added product in my cart and open a popup to confirm. Now, I'm redirected to the homepage without adding the product and the cart view is inserted, empty, below. Arrows to increment the number of products don't work either. Is this issue speak to someone ?

Best regards,
Aelric

Operating System: Windows 7
Joomla version: 2.5.27
URL's concerned site: Local site
Hosting: Local server (EasyPHP)
Browser(s): Firefox, Chrome
Title: Re: [Upgrade virtuemart 2.6.12] “Add to cart” button doesn't work anymore
Post by: Aelric on December 10, 2014, 10:14:24 AM
Greetings again,

Html code is the same from one version to another. Also I think it may be a problem with javascript libraries.
Does anyone have had conflicts with their libraries after virtuemart updates ?

Best regards,
Aelric
Title: Re: [Upgrade virtuemart 2.6.12] “Add to cart” button doesn't work anymore
Post by: jenkinhill on December 10, 2014, 11:18:51 AM
JavaScript debugging:  http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: [Upgrade virtuemart 2.6.12] “Add to cart” button doesn't work anymore
Post by: Aelric on December 11, 2014, 09:40:30 AM
Apparently, the problem was an override problem. The code wasn't working, because it lacked this line to "/templates/vmblend-blue/html/mod_virtuemart_product/default.php" :

// add javascript for price and cart, need even for quantity buttons, so we need it almost anywhere
vmJsApi::jPrice();


I imagine it was brought by the update in the main code.

But Thank you for the help provided,
Aelric.