For example, let's say the Discount Group ID is 2 ... you can customize the code for:
/includes/modules/shipping/freeoptions.php
with the code in RED:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
}
// bof: Only for Discount Group 2
if (!IS_ADMIN_FLAG) {
$chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
$chk_discount_group = $db->Execute($chk_discount_group_sql);
if ($chk_discount_group->fields['customers_group_pricing'] != 2) {
$this->enabled = false;
}
}
// eof: Only for Discount Group 2
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_ZONE > 0) ) {
Now only those in Discount Group ID 2 can use this shipping module ...
Bookmarks