Author Topic: Checkout button not working in 3.2.4  (Read 220 times)

David

  • Jr. Member
  • **
  • Posts: 53
Checkout button not working in 3.2.4
« on: September 05, 2017, 21:54:24 pm »
After updating from 3.2.2 to 3.2.4, the checkout button in cart stopped working.
At first I thought that it is the result of my cart overrides, but when I switched the template to Protostar (no VM overrides), the behavior is the same. Besides the checkout button, the update and delete buttons by individual cart items do not work either.

Any hint from anybody?
Joomla 3.8.0, VirtueMart 3.2.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Checkout button not working in 3.2.4
« Reply #1 on: September 05, 2017, 23:30:24 pm »
Seems to be a js error, check your java script console.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

David

  • Jr. Member
  • **
  • Posts: 53
Re: Checkout button not working in 3.2.4
« Reply #2 on: September 05, 2017, 23:35:03 pm »
Hmm, I dont know how to debug JavaScript...
Joomla 3.8.0, VirtueMart 3.2.4

David

  • Jr. Member
  • **
  • Posts: 53
Re: Checkout button not working in 3.2.4
« Reply #3 on: September 06, 2017, 00:32:01 am »
I don't understand it... When using Protostar template with no overrides, from where can originate JavaScript problems?
Joomla 3.8.0, VirtueMart 3.2.4

David

  • Jr. Member
  • **
  • Posts: 53
Re: Checkout button not working in 3.2.4
« Reply #4 on: September 06, 2017, 01:06:13 am »
Well, after clicking the checkout button and other controls on the page, I get errors like these in the console:

TypeError: $(...).vm2front is not a function
http://localhost/xxx/components/com_virtuemart/assets/js/dynupdate.js?vmver=15c1b47f
Line 136

TypeError: jQuery(...).vm2front is not a function
http://localhost/xxx/index.php?option=com_virtuemart&view=cart&Itemid=121
Line 551
Joomla 3.8.0, VirtueMart 3.2.4

David

  • Jr. Member
  • **
  • Posts: 53
Re: Checkout button not working in 3.2.4
« Reply #5 on: September 06, 2017, 02:10:17 am »
Finally, I found that when I uncheck "Ajax for OPC" in Virtuemart configuration, controls on the checkout page start to work normally in all templates.

Any thoughts why all this is going on?
Joomla 3.8.0, VirtueMart 3.2.4

David

  • Jr. Member
  • **
  • Posts: 53
Re: Checkout button not working in 3.2.4
« Reply #6 on: September 07, 2017, 21:26:07 pm »
UPDATE:
After reading this topic: https://forum.virtuemart.net/index.php?topic=134074.0, I tried the "desperate move" - checking ALL boxes under Configuration-> Templates -> Activate Css Styles & Javascripts. Surprisingly, AJAX functions started to work again across Virtuemart - i.e. including the checkout screen and the product detail screen.
Joomla 3.8.0, VirtueMart 3.2.4