Fireflight Posted July 13, 2010 Share Posted July 13, 2010 I'm using the Canada Post shipping module. On the checkout_shipping.php page, the shipping options are in descending order (Most expensive to least expensive). I need to sort them from least expensive to most expensive. I have a feeling that what I need to edit is in the snippet below, but I'm nowhere near certain. Any help would be really appreciated! $canadapostQuote = $this->_canadapostGetQuote(); if ( (is_array($canadapostQuote)) && (sizeof($canadapostQuote) > 0) ) { $this->quotes = array('id' => $this->code, 'module' => /*$this->title . ' (' . */$shipping_num_boxes . ' x ' . $shipping_weight . 'kgs' ); //2gen.net - Removed shipper name $methods = array(); for ($i=0; $i<sizeof($canadapostQuote); $i++) { list($type, $cost) = each($canadapostQuote[$i]); if ( $method == '' || $method == $type ) { $methods[] = array('id' => $type, 'title' => $type, 'cost' => (SHIPPING_HANDLING + MODULE_SHIPPING_CANADAPOST_HANDLING + $cost) * $shipping_num_boxes); } } Quote Link to comment Share on other sites More sharing options...
artofadornment Posted February 20, 2012 Share Posted February 20, 2012 Bumping this, as I'd like some help changing the sort order as well. :) Quote Art of Adornment ~ Vintage-Inspired Jewelry & Accessories Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.