I just finished writing a custom shipping module and was pretty excited until I found one glaring error. The shipping quote I pass using the module displays correctly on the shopping cart page (using shipping estimator) and on the Shipping Page of the checkout process - all methods are correctly displayed. However, no matter what method I select on the Shipping Page of checkout, when I proceed to the Payment Page, only the first method is only ever listed in the order total summary! No matter what options they select, the order summary shows the first "Ground" option.
As this is the first custom shipping module I've written, any advice from those wiser than me would be appreciated! I've included the applicable custom shipping module code where I create the shipping quote below:
(Code from the custom module to create the quote)
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_PERBOXTYPE_TEXT_TITLE,
'methods' => array(array('id' => "ground",
'title' => "Ground - 1 to 5 Days",
'cost' => $upsground),
array('id' => "threeday",
'title' => "3 Day Select",
'cost' => $upsthird),
array('id' => "twoday",
'title' => "2nd Day Air",
'cost' => $upssecond)));
}
Bookmarks