Cart not diverting to PayPal redirect to home page

Started by PaulLye, March 11, 2020, 22:21:42 PM

Previous topic - Next topic

PaulLye

Changed server (Checked with hosting and the errors are pointing to VM) When adding items to cart in VM then select payment it brings up "Please wait redirecting to PayPal" all good to this point but then diverts to home page. My site s running Joomla 3.9.16 PHP 7.3 Virtuemart 3.6.10 PayPal standard is the payment plugin. Testing this after being diverted to the home page if I delete browsing history front end then select the home page it takes me to PayPal payment page!
Has anyone experience this problem and if so how to fix?

GJC Web Design

Its a very simple redirect ..

just submits the form

           jQuery(document).ready(function($){
               jQuery("body").addClass("vmLoading");
              var msg="'.$msg.'";
               jQuery("body").append("<div class=\"vmLoadingDiv\"><div class=\"vmLoadingDivMsg\">"+msg+"</div></div>");
             jQuery("#vmPaymentForm").submit();
         })

so switch the paypal debug on and check all the form elements are correctly set and the form action correct
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PaulLye

The paypal error report is not showing any problems see attached screenshot.

GJC Web Design

and when u subsequently submit it?

check the console Network tab for progress etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PaulLye

I'm looking at the processes, is there something I should see that tells me there is a problem? see screenshots.

PaulLye


GJC Web Design

its a simple JS triggered form submit .. nothing complex

so check if the JS is working, if the form will submit when halted by the debug etc etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PaulLye

This is the error showing when it diverts to home page when submitted. Does this help to show where to fix or what is causing this problem?

GJC Web Design

#8
have u tried the basic stuff like using the base template Protostar or beez?

seeing a load time of nearly 6 seconds and a payload of +6MB would be ringing alarm bells for me
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PaulLye

Yes that was the first thing I did still divert to home page.

GJC Web Design

#10
Out of ideas -- needs some live site investigation
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jjk

Did you try already to unpublish your jch-optimize and purge all it's cached pages?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

PaulLye

I have tried un-publishing all extensions that could conflict with normal site running including jch-optimize and no difference. Also prior to change of hosting all extensions like jch were already installed and the site was working fine.

Please let me know if you require to Admin I can send password details? 

GJC Web Design

Changed host?

Didn't see that bit .. well .. worked before - changed hosts - stopped working - everyone else's on the planet is working - conclusion?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PaulLye

I should have clarified a bit more, I didn't change hosting companies I change the type of hosting platform. I went from a VPS server to a shared server, I asked my the hosting company to check errors and their reply was no hosting errors but errors pointing to VirtueMart. Hence why I am here!