Author Topic: Problem with the VirtueMart purchase button  (Read 259 times)

reza_mirzapour2002

  • Beginner
  • *
  • Posts: 2
  • A beginner
Problem with the VirtueMart purchase button
« on: August 19, 2020, 22:59:15 pm »
Hello
I have a problem that I can't solve. On the first page of the VirtueMart store, when I click on the product, a pop-up opens that says continue shopping or display the shopping cart. But on the product collection page, when I click on the purchase button, nothing happens and that product is not added to my shopping cart and goes straight into the shopping cart
On the first page, when I right-click and see the element, there is an event option, but on the product collection page, when I right-click on the purchase button and see the element, there is no event option.
https://www.sanafoodmarket.com.... true
https://www.sanafoodmarket.com/breakfast... false


Thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Problem with the VirtueMart purchase button
« Reply #1 on: August 19, 2020, 23:34:35 pm »
because on that page u have a JS error

Uncaught TypeError: Virtuemart.product is not a function

that breaks the popup script

GJC Web Design
VirtueMart and Joomla Developers - php developers http://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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

reza_mirzapour2002

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Problem with the VirtueMart purchase button
« Reply #2 on: August 20, 2020, 00:00:21 am »
thanks a lot
How should I fix this error?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Problem with the VirtueMart purchase button
« Reply #3 on: August 20, 2020, 09:55:19 am »
find where that snippet is rendered and find why the syntax is wrong
GJC Web Design
VirtueMart and Joomla Developers - php developers http://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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation