
Originally Posted by
Ajeh
Let's say I was using the Item Rate item shipping module ...
You would see the code:
PHP Code:
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
That builds the output for this ...
You can alter that based on certain conditions to display something else ...
Linda I found the part that I'm going to change, but I'm not sure how to change it. Here is the part for the table I'm using:
Code:
$this->quotes['methods'][0] = array( 'id' => $method,
'title' => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_OPT_' . $method),
'cost' => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_COST_' . $method) + $fee );
can I just replace:
'cost' => zen_get_configuration_key_value('MODULE_SHIPPING_STATICLIST_COST_' . $method) + $fee );
with :
'cost' => 'TBD');
I'm not sure if cost is a string or an integer type and I'm not sure how to do assigning with PHP code. Is this doable?