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
first try with the std. Beez template
Works for me on your site.
Jörgen
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
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
I have temporarily solved it by: setting "Display modal popup upon 'Add to cart'" to YES.
Thank everyone.