VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: reza_mirzapour2002 on August 19, 2020, 22:59:15 PM

Title: Problem with the VirtueMart purchase button
Post by: reza_mirzapour2002 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
Title: Re: Problem with the VirtueMart purchase button
Post by: GJC Web Design 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

Title: Re: Problem with the VirtueMart purchase button
Post by: reza_mirzapour2002 on August 20, 2020, 00:00:21 AM
thanks a lot
How should I fix this error?
Title: Re: Problem with the VirtueMart purchase button
Post by: GJC Web Design on August 20, 2020, 09:55:19 AM
find where that snippet is rendered and find why the syntax is wrong