An example of how to change the code would be changing the code from:
PHP Code:
$this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);
to read:
PHP Code:
// only run if order is over $100.00
global $cart;
if (!IS_ADMIN_FLAG) {
$order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
} else {
$order_total_amount = 0.00;
}
if ($order_total_amount >= 100) {
$this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);
}
Bookmarks