Author Topic: Add To Cart Button Does Not Work  (Read 416 times)

panta7

  • Beginner
  • *
  • Posts: 7
  • A beginner
Add To Cart Button Does Not Work
« 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
VirtueMart: VirtueMart 4.0.6 10690
Joomla: 3.10.11
PHP: 8.0.23

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10743
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Add To Cart Button Does Not Work
« Reply #1 on: September 27, 2022, 11:44:50 am »
first try with the std. Beez template
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3935
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Add To Cart Button Does Not Work
« Reply #2 on: September 27, 2022, 12:16:34 pm »
Works for me on your site.
Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ssc3

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 201
    • Online Store Plugins
Re: Add To Cart Button Does Not Work
« Reply #3 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


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

hazael

  • Jr. Member
  • **
  • Posts: 310
    • Biżuteria etniczna orientalna arabska
  • VirtueMart Version: VM 4.0.12 [J3][J4]
Re: Add To Cart Button Does Not Work
« Reply #4 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

panta7

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Add To Cart Button Does Not Work
« Reply #5 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.