JS ERRORS - VM ONEPAGE CHECKOUT

Support desk for Multipurpose Quark Theme
GK User
Sat Jun 10, 2017 9:26 pm
Hello guys,

This post is related to this one:
https://www.gavick.com/forums/quark/js- ... kout-54085

but this post is closed now, so i open a new one.

I'm using the VM onepage checkout plugin in the Quark template Store version. (https://vmonepage.com/)

Any action (change payment for example) on the checkout page would result in the opg-modal-dialog freezes. I managed to solve this issue commenting the code in this post
https://www.gavick.com/forums/quark/vir ... or#p266119

/templates/gk_quark/js/gk.scripts.js
Code: Select all
   //j/Query('a').on('click',function(){
      //if(jQuery(this).attr('href').substr(0,7) === 'mailto:') {
          //ignore_onbeforeunload = true;
       //} else {
          //ignore_onbeforeunload = false;
       //}
   //});


This fix, stoped the modal the opg-modal-dialog freezes and it seems everything is working fine, but on the check-out process the e-mails to shopper and vendor is not sent.

I tested, and this is happening because of that change.

So, here i have a version with that code off:
https://tinyurl.com/yb76dd58
everything is working ok, but the e-mails after buying are not sent to the vendor or shopper

and here i have a version with that code on:
https://tinyurl.com/ybuhhjcl
any action on the checkout page will result in the opg-modal-dialog freezes. But if i disable the vmonepage pluggin the emails are sent and working properly.

Any idea on how to get the vmonepage plugin working without the opg-modal-dialog freeze and sending the emails to shoper and vendor when finishing the buy?

Regards
User avatar
Senior Boarder

teitbite
Tue Jun 13, 2017 9:26 am
Hi

Please test if the same is happening if You will switch template to Protostar, which is the default joomla template. I think problem may be comming from mail configuration or the plugin/vm itself and not the template, so this will test if I'm right.
User avatar
Moderator

GK User
Wed Jun 14, 2017 12:56 am
Hey teitbite,

The e-mail settings are ok, contact form and backoffice notices are wroking fine. It only happens on the checkout process if we uncomment this:
Code: Select all
jQuery('a').on('click',function(){
      if(jQuery(this).attr('href').substr(0,7) === 'mailto:') {
          ignore_onbeforeunload = true;
       } else {
          ignore_onbeforeunload = false;
       }
   });


So if i remove this code, the shoper/vendor emails are not sending when we finalise a purchase. If i leave this code, the opg-modal-dialog freezes in any action taken in the checkout process.

I talked with the vmonepage plugin team, to double check on this. But this plugin is working ok with protostar and they said it is a js error.

There's no way to change that code to something similar but without having this error?
User avatar
Senior Boarder

teitbite
Sat Jun 17, 2017 2:44 pm
Hi

Will have to report that to programmers. Please send me an access to joomla panel and ftp to my email [email protected]
User avatar
Moderator

teitbite
Mon Jun 19, 2017 2:31 pm
Hi

Send Your access to programmers. Will let You know as soon as they will answer me.
User avatar
Moderator

GK User
Mon Jun 19, 2017 10:17 pm
Ok i sent it to you already.

Thanks
User avatar
Senior Boarder

teitbite
Wed Jun 21, 2017 11:28 am
Hi

Programmers has pointed out that Your joomla and template are out of date. This may be a reason of the problem. Is there an issue preventing You from updating both of them ?
User avatar
Moderator


cron