Show Member Prices
In 2.62, a system was added to allow prices to be displayed just to members, by setting the $membersonly_showprices variable in the openinfo.php file (in the /enc/ folder) to "yes". However, this only affected general prices; option and registry prices still displayed.
This error was corrected in version 2.8. For version 2.62 or 2.72 files, please use the following mods to update your site:
-
Open the products_detail.php, products_single.php and products_multisingle.php files in the /enc/ folder.
-
Change the line:
if ($optnum > 0)
to:
if ($optnum > 0 AND $show_prices == "yes")
-
-
Open the registry_showlist.php file in the /enc/ folder.
-
Change the line:
if ($showrow[SalePrice] != 0 AND $priceset == "yes")
to:
if ($showrow[SalePrice] != 0 AND $priceset == "yes" AND $show_prices == "yes")
-
Change the line:
else if ($showrow[RegPrice] > 0 AND $priceset == "yes")
to:
else if ($showrow[RegPrice] > 0 AND $priceset == "yes" AND $show_prices == "yes")
-
Change the line:
if ($optnum != 0)
to:
if ($optnum > 0 AND $show_prices == "yes")
-
Change the line:
if ($showrow[QtyReceived] < $showrow[QtyWanted] AND $show_qty == "yes")
to:
if ($showrow[QtyReceived] < $showrow[QtyWanted] AND $show_qty == "yes" AND $showordbutton == "Yes")
-
-
Open the products_options.php file in the /enc/ folder.
-
At the top of the file, add the lines:
if ($show_prices == "yes") {just under the line:
die("Cannot open file."); -
At the very bottom of the file, add the line:
}
just above the line:
?>
-