VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: panta7 on September 27, 2022, 11:03:47 AM

Title: Add To Cart Button Does Not Work
Post by: panta7 on September 27, 2022, 11:03:47 AM
Hello, I have VirtueMart 4 and "add to cart" button does not work in "view=productdetails" and "view=category". Nothing happen when I click on "add to cart". In homepage if I click on "add to cart" (through modules) it works. How can I fix it, please? Tanks.
Here the website (https://www.liuteriashop.com/)
VirtueMart: VirtueMart 4.0.6 10690
Joomla: 3.10.11
PHP: 8.0.23
Title: Re: Add To Cart Button Does Not Work
Post by: GJC Web Design on September 27, 2022, 11:44:50 AM
first try with the std. Beez template
Title: Re: Add To Cart Button Does Not Work
Post by: Jörgen on September 27, 2022, 12:16:34 PM
Works for me on your site.
Jörgen
Title: Re: Add To Cart Button Does Not Work
Post by: ssc3 on September 27, 2022, 12:36:27 PM
Home page is adding to cart but other pages are not.

When it does work it goes straight to checkout page without using a modal popup.

VM 4.0.6 has a known problem with that type of checkout flow.

https://forum.virtuemart.net/index.php?topic=148569.0

Might be worth upgrading to 4.0.7 to see if that helps.

http://dev.virtuemart.net/projects/virtuemart/files


Title: Re: Add To Cart Button Does Not Work
Post by: hazael on September 27, 2022, 17:00:37 PM
You have a lot of unnecessary Javascript junk in your template.

Jquery-noconflict occurs more than 1 time - your website doesn't need it
jquery-ui.min.js - you only use 19% - consider optimization
jquery.fancybox.js occurs 2 times in different versions.
The "frontend-edit.js" script appears publicly...

Google reCAPTCHA on all pages is not a good idea

This template was last updated in 2020 - seems to be incompatible with the last version of Virtuemart.
https://www.joomshaper.com/joomla-templates/megadeal-ii


PS. In the first place on this page, I would disable "Impostazione cookie" - [cookie policy]. I haven't checked, but your plugin can block all necessary cookies by default. Applying such restrictions on the store's website does not make sense. This is a stupid EU directive - nobody verifies it. It only interferes with normal sales
Title: Re: Add To Cart Button Does Not Work
Post by: panta7 on September 28, 2022, 09:33:50 AM
I have temporarily solved it by: setting "Display modal popup upon 'Add to cart'" to YES.
Thank everyone.