The idea is ...
IF count >= 3
charge 500
else
charge normal
endif
So ... you need to alter the code in /includes/modules/item.php to use this IF in place of the normal method ...
PHP Code:
// if total item count >= 3 charge 500 otherwise, charge regular item charge
if ($total_count >= 3) {
$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' => 500)));
} else {
$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 * $total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
}
Bookmarks