X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   Cannot switch between two created shipping methods (https://forum.x-cart.com/showthread.php?t=75348)

joestern 05-16-2017 09:28 AM

Cannot switch between two created shipping methods
 
2 Attachment(s)
I am using x-payment 3.02, x-cart 4.77, light-responsive skin and x-cart's one-page checkout. I am using iframe for x-payments, so that the credit card is entered on the checkout page.

I have created two custom (added) shipping methods: Free Ground Shipping ($0.00) and Pick up ($0.00). (see attached)

When a user attempts to switch between the two shipping methods we created, x-payments hangs when trying to load the iframe. The solution is to refresh the page, and then the credit card iframe appears. (see attached)

This problem does not occur if we choose a payment method that does not invoke x-payments (eg. phone ordering), which makes me believe that the issue is with x-payments.

The problem also does not seem to occur if switching between a predefined shipping method (eg. UPS overnight) and a custom method. It seems to be confined to switching between two custom methods.

I cannot find any errors in the log files.

I hope you can help resolve the problem.

Thank you!

ambal 05-17-2017 04:58 AM

Re: Cannot switch between two created shipping methods
 
Checking this in our default copies of software. Stay tuned.

ambal 05-17-2017 06:12 AM

Re: Cannot switch between two created shipping methods
 
Confirmed. Going to review it in the next development sprint or in one after the next one.

joestern 05-17-2017 08:40 AM

Re: Cannot switch between two created shipping methods
 
Thank you for getting back so quickly; we appreciate it. This is a pretty important issue for us, so if you have a patch available before the next version is released, we'd sincerely appreciate it.

joss 05-17-2017 11:40 PM

Re: Cannot switch between two created shipping methods
 
Here is a quick fix for this issue:

HTML Code:

--- a/skin/common_files/modules/One_Page_Checkout/ajax.checkout.js
+++ b/skin/common_files/modules/One_Page_Checkout/ajax.checkout.js
@@ -441,7 +441,7 @@ ajax.widgets.checkout.obj.prototype.selectShipping = function(elm) {
        action: 'update'
      },
      success: function(a, b, c, d) {
-        return s.callback(true, a, b, c, d) && (s.isXPCPayment(paymentid) ? true : s.enableCheckout());
+        return s.callback(true, a, b, c, d) && s.enableCheckout();
      },
      error: function(a, b, c, d) {
        return s.callback(false, a, b, c, d) && s.enableCheckout();


joestern 05-18-2017 07:31 AM

Re: Cannot switch between two created shipping methods
 
It worked; thank you!


All times are GMT -8. The time now is 02:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.