Wholesale only items show when logged in wrong
The 2.55 and 2.62b beta have an issue with wholesale only items. If you log in incorrectly, you will still be able to see items marked as WS Only. This has been corrected in later releases. For earlier releases:
-
Open the catalog.php and openinfo.php pages in the /enc/ folder and change the line:
if (empty($wspass) AND empty($wsemail) AND $wsnum != 1)
to:
if (empty($wspass) OR empty($wsemail) OR $wsnum != 1)
-
Open the catnum.php and featured.php pages in the /enc/ folder and change the line:
if (!$wspass AND !$wsemail AND $wsnum != 1)
to:
if (empty($wspass) OR empty($wsemail) OR $wsnum != 1)
In both instances, the AND should be OR. Otherwise, if the person is logged in, even if incorrectly, it will still show the wholesale only items.