View Full Version : New problem: Select Next Day, you get ground
turbo2ltr
March 10th, 2005, 07:01 PM
I have the UPS RTR working, but when I select a shipping methon on checkout, it pops into the car as something else. i.e. I select Next day air I get ground. I select 2 day, I get Next day air saver. What gives?
More info:
Select: Cart shows:
Ground NDAS
2Day NDA
3Day NDAEAM
NDAS Ground
NDA Ground
NDAEAM Ground
NDA= Next Day air
NDAS = NDA Saver
NDAEAM = NDA Early am.
USPS seems to work fine.
turbo2ltr
March 11th, 2005, 09:33 PM
No takers huh? :confused:
I have the whole cart integrated into the site...this is the last thing holding me up.
turbo2ltr
March 11th, 2005, 10:57 PM
I have to say I'm less that thrilled at the level of support for this cart. Then again, it's probably better than the last one I used.
Answer to above problem:
It seems the session cache that is storing the shipping options is referenced wrong when numbered on the "show rates" page.
Around Line 650 in get_shipping_method.func.php originally has:
//$Option_Value = $ship_option[$x];
$Option_Value = $x;
This makes the radio button values not start at 0 if you are displaying USPS rates and have USPS enabled since at this point, $x = the index into the array of ALL ship methods, but the cache only holds a list of the methods for the current courrior.
It needs to be
//$Option_Value = $ship_option[$x];
$Option_Value = $a;
Otherwise when the cart looks up the data in the cache and the wrong index and/or the check for a user-changed ship_method around line 720 fails...
I supposed you could also move the
// cache this ship option in session....
$SC['ship_option_cache'][] = $ship_options[$x];
to outside of the
if (!$_GET['show_courier'] || $courier_number[$x] == $_GET['show_courier']) {
I dont know how anyone else could be using the cart with this error....or if making this change broke anything else.
Jamie
March 18th, 2005, 09:47 PM
Hi turbo2ltr,
I have to say I'm less that thrilled at the level of support for this cart. Then again, it's probably better than the last one I used.
I'm sorry to hear that. Are you aware that the forums are not considered official support? The forums are meant as a user to user community first, and a secondary way of obtaining support from other customers and our staff as time permits. There is no guarantee that you will receive a response to any forum post. This is a quote regarding the forums on our support page:
You can post requests, possible bug reports, or general questions here. The forums are intended mainly as a community resource rather than an official method of contacting support - but responses will be given whenever possible. If you have a how-to or customization question, we prefer that you post your question in the forum whenever possible, as it benefits others that may have the same question. Posts in the forums are not considered official requests for support.
Now, as for your problem, it is a bug. I just posted a fix for it here:
http://www.ldev.com/forums/showthread.php?t=1828
The best way to handle getting a bug resolved in the future is to submit a post in the Bug Reports section. For critical bugs you may also open a helpdesk ticket.
I dont know how anyone else could be using the cart with this error....or if making this change broke anything else.
The reason people have been able to use Squirrelcart without experiencing this problem to date include any one of the following:
1. They installed Squirrelcart prior to 02/21/2005
2. They installed Squirrelcart after 02/21/2005, and are not using multiple couriers
3. They installed Squirrelcart after 02/21/2005, and are using multiple couriers that do not include UPS
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.