I have this code
$chk_group = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
if ($chk_group->fields['customers_group_pricing'] != 1 || $chk_group->fields['customers_group_pricing'] != 2) {
$this->enabled = false;
}
But it doesn't work, I want the flatrate shipping to only be visible by people who are in group price groups 1 and 2.
If i can make it work, then also groups 3 and 4.
So basically, I want the flat rate shipping option to only be available to those who have group pricing.
Bookmarks