Is there a way to make the cheapest shipping options show up first with UPS? Right now, the highest price shipping option is listed first. I'd like to reverse the order, making it lowest to highest.
Thanks!
Is there a way to make the cheapest shipping options show up first with UPS? Right now, the highest price shipping option is listed first. I'd like to reverse the order, making it lowest to highest.
Thanks!
I'm still looking for a way to do this... If anyone has any ideas I sure would appreciate it. It would be really nice for my customers to see the cheapest option first.
Thanks!
Zen Cart's normal behavior is to auto-select the cheapest shipping option.
If yours isn't doing that, then you're not using original Zen Cart code ... perhaps you've made customizations to your site that have caused that behavior to not function correctly.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Or ... are you saying you want them to show in price-sorted order?
I believe the default sort order from UPS is fastest-to-slowest, not cheapest-to-most expensive.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Exactly! It does pick the cheapest shipping option.
I am concerned about the sort order. I'd rather it sort from cheapest at the top to most expensive at the bottom instead of by speed.
I want the first thing my customer see to be cheap! :)
Thanks!
Around line 180 of your usp.php shipping module file, you'll see code that looks like this:
Code:$methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes); } $this->quotes['methods'] = $methods;
Make a few adjustments, like this:Code:$methods[] = array('cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes, 'id' => $type, 'title' => $this->types[$type]); } sort($methods); $this->quotes['methods'] = $methods;
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you, thank you, thank you! That worked like a charm. I also did the same thing for USPS without any problems.
I appreciate the help! :)