VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kiasati on May 16, 2018, 09:52:40 AM

Title: "check out now" button in cart wont work!
Post by: kiasati on May 16, 2018, 09:52:40 AM
Hi.

the "check out now" button in cart won't work, i think it's because js conflict.
in console i see this error
Uncaught TypeError: jQuery(...).vm2front is not a function
    at HTMLDocument.<anonymous> (cart:620)
    at i (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at Object.fireWith [as resolveWith] (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at Function.ready (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at HTMLDocument.K (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
dynupdate.js?vmver=33123883:136 Uncaught TypeError: $(...).vm2front is not a function
    at HTMLFormElement.<anonymous> (dynupdate.js?vmver=33123883:136)
    at HTMLFormElement.dispatch (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:3)
    at HTMLFormElement.r.handle (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:3)
    at Object.trigger (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:3)
    at Object.a.event.trigger (jquery-migrate.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at HTMLFormElement.<anonymous> (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:3)
    at Function.each (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at a.fn.init.each (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:2)
    at a.fn.init.trigger (jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:3)
    at a.fn.init.n.fn.(anonymous function) [as submit] (http://localhost/may/media/jui/js/jquery.min.js?5f244f9a40249b3629bc6e1582f4941d:4:16320)


and vm configuration for loading js files are as shown in picture below:

(http://uupload.ir/files/96ub_dfsdfgrdyujedtyiedtyiketyedtyuketyuketu.jpg)

and js files loaded on page are as shown below:

(http://uupload.ir/files/8tjf_asfgasdfgafdg.jpg)

what should i do to make cart button work?
what conflicts do you find?

any help would be appreciated. thanks..
Title: Re: "check out now" button in cart wont work!
Post by: jenkinhill on May 16, 2018, 10:49:33 AM
You are not loading vmsite.js   - and probably you need to enable Using the Script ajax Countries / Regions

http://forum.virtuemart.net/index.php?topic=137760