Update to v2.0
To avoid having to enter the master categories ID and the corresponding full cPath (eg 4_12_100) in admin, open your file
includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
and find
PHP Code:
/**
* CATEGORY_RESTRICTION - we are hiding prices for specific categories only
*/
if (!$_SESSION['customer_id'] && in_array($cPath,explode(',', CATEGORY_RESTRICTION_HIDEPRICE_CATEGORY)) ) {
$hideprice = 'true';
} else {
$hideprice = 'false';
}
?>
replace with
PHP Code:
/**
* CATEGORY_RESTRICTION - we are hiding prices for specific master categories only
*/
if (!$_SESSION['customer_id'] && in_array($result->fields['master_categories_id'],explode(',', CATEGORY_RESTRICTION_HIDEPRICE_CATEGORY)) ) {
$hideprice = 'true';
} else {
$hideprice = 'false';
}
?>
This will be reflected in the next update of this mod.
Frank
Bookmarks