New Zenner
- Join Date:
- Apr 2013
- Location:
- California
- Posts:
- 11
- Plugin Contributions:
- 0
Turning off "Table Rate" before a certain price
I saw the below on another thread, where the table rate is ignored depending on (greater than or less than) a certain price. I was wondering if the same thing can be done for a certain price and if so, can it be easily switched from (greater than or less than) as well?
thank you!
"So are you saying you want it to turn off on a weight > .25?
If so, you can customize the file:
/includes/modules/shipping/table.php
and in the function quote, add the code in RED:
Code:
// bof: disable shipping module > .25
if ($shipping_weight > .25) {
// skip shipping
} else {
// show shipping
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
'cost' => $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
}
// eof: disable shipping module > .25"