Try reversing all the content inside the brackets
{}. So essentially, use the same code outlined from Edington's fix, but switch the
$special_price = false; with all the code that comes after
} else {. You'll get something like this:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// All the display code would go here
} else {
$special_price = false;
}
You might have to do further customizations to prevent sale prices from going into the shopping cart for Retail customers. You mention that Retail prices are displayed a service only - does that mean you do not plan to sell anything Retail, you're only selling Wholesale?
If that's the case, why not hide pricing unless users are logged in. There's a switch in Configuration > Customer Details > Customer Approval Status.
Then, there's a line of code in tpl_product_info_display.php that you can uncomment to show Wholesalers the retail price on the same page, like so:
Retail price: $500
Wholesale price: $300
Here's that section of code:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// Uncomment the following line if you want wholesalers to be able to see Retail prices while logged in
echo '<span id="retailwhole">Retail Price: ' .$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
}
Bookmarks