Hello,
I have almost successfully cloned the "flat" shipping module into what I am looking for - basically adding several price options instead of just one for each "flat" clone.
(For example, instead of just $5.00 flat, you can choose $5.00 flat 3 day, $8.00 flat for 2 day or $12.00 flat for next day)
Sample Code:
$methods = array();
$methods[] = array('id' => 'optionone',
'title' => MODULE_SHIPPING_BEZONE4_TEXT_WAY,
'cost' => MODULE_SHIPPING_BEZONE4_COST);
$methods[] = array('id' => 'optiontwo',
'title' => MODULE_SHIPPING_BEZONE4_TEXT_WAY2,
'cost' => MODULE_SHIPPING_BEZONE4_COST2);
$this->quotes['methods'] = $methods;
Everything seems OK on "Step 1 of 3 - Delivery Information". My new radio options show up and I've checked the code and their values seem good.
The problem I am having occurs on "Step 2 of 3 - Payment Information". The shipping option and price show the title and price of the first appearing radio option in my clone no matter which option is checked.
(For example, if there are three options A,B,C, and B or C is checked on "Step 1 of 3" - "Step 2 of 3" shows A as what was checked.
I cannot for the life of me figure out why this is happening and any help would be greatly appreciated.
Bookmarks