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:

  1. Open the products_detail.php, products_single.php and products_multisingle.php files in the /enc/ folder.

    1. Change the line:

      if ($optnum > 0)

      to:

      if ($optnum > 0 AND $show_prices == "yes")
  2. Open the registry_showlist.php file in the /enc/ folder.

    1. Change the line:

      if ($showrow[SalePrice] != 0 AND $priceset == "yes")

      to:

      if ($showrow[SalePrice] != 0 AND $priceset == "yes" AND $show_prices == "yes")
    2. Change the line:

      else if ($showrow[RegPrice] > 0 AND $priceset == "yes")

      to:

      else if ($showrow[RegPrice] > 0 AND $priceset == "yes" AND $show_prices == "yes")
    3. Change the line:

      if ($optnum != 0)

      to:

      if ($optnum > 0  AND $show_prices == "yes")
    4. 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")
  3. Open the products_options.php file in the /enc/ folder.

    1. At the top of the file, add the lines:

      if ($show_prices == "yes")
      {

      just under the line:

      die("Cannot open file.");
    2. At the very bottom of the file, add the line:

      }

      just above the line:

      ?>