News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add To Cart Button Does Not Work

Started by panta7, September 27, 2022, 11:03:47 AM

Previous topic - Next topic

panta7

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
VirtueMart: VirtueMart 4.0.6 10690
Joomla: 3.10.11
PHP: 8.0.23

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ssc3

#3
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


Virtuemart Payment Plugins
https://plugins.online-store.co.uk

hazael

#4
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

panta7

I have temporarily solved it by: setting "Display modal popup upon 'Add to cart'" to YES.
Thank everyone.