| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Google Checkout shipping rates fix | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Google Checkout shipping rates fix
Well I know a ton of people have given up on Google Checkout because of the whole 3 second timeout on shipping calculations - well I have a solution - simply create the XML code yourself for the shipping rates instead of letting X-cart generate it dynamically. In gcheckout.php, after:
Code:
We will be overriding this previous calculation and totally defining the $shipping_methods variable ourselves. Here's my example (and this would be pasted directly below the above code): Code:
Basically, this gives: To the continental US: -- $7.95 Ground shipping for orders under $100 -- Free Ground shipping for orders above $100 -- $15 2nd day air shipping -- $30 next day shipping To Hawaii and Alaska: -- $25 2nd day air shipping This has worked 100% of the time, the shipping variables are loaded in with the initial XML request so I don't think the 3 second rule even applies here. To test it anyway, I hammered the checkout button about 30 times in 5 seconds, and every single tab loaded the shipping rates correctly (some tabs taking up to a minute to load). Seems pretty rock solid. I've used an if/then statement for the order total to give free shipping on orders above a certain amount, but you could also work in other rules based on your own needs, even using the total shipping weight and manually setting up tiered shipping rates with XML to simulate calculated rates if necessary. Hope this helps you guys out!
__________________
----------------- X-cart version 4.2.1 |
|||||||
#2
|
|||||||
|
|||||||
Re: Google Checkout shipping rates fix
When you implemented this fix, do your x-cart-generated invoices show the correct shipping total and method?
Every xcart invoice for a google order shwos 0.00 for shipping, regardless of the shipping method actually purchased/chosen in google. Thanks.
__________________
X-Cart version 4.7.12 |
|||||||
|
|||
X-Cart forums © 2001-2020
|