I've made a number of modifications to my client's cart based on what I've read here - I've edited customer/main/product.tpl and products.tpl so that prices will not show unless the user is logged in at the 'Wholesale' level.
This pricing scheme is *mostly* working. It's working on all the category pages, and it's hiding the 'buy now' button on the product page, but the one problem is the the price is being hidden on all product pages *except* the ones with variants. On those products I can see my 'you must be logged in to view prices' message flash for a fraction of a second and then the price appears.
I tried redefining wholesale prices for my variants, and that didn't help. I think they're set up correctly - I checked each box for each variant and assigned them to the 'Wholesale' membership level in the section at the bottom of the variants admin page, 'Modify wholesale prices for selected variants.'
Here's my code from customer/main/product.tpl that pertains to this, the 'paragraph' in the middle:
PHP Code:
<tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>
<td valign="top">
{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;">
{* THIS IS THE LOGIN REQUIREMENT *}
{if $login eq "" or $user_membership ne "Wholesale" }You must be logged in as a wholesale buyer to view prices.
{else}
{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}
{/if}
</span></font>
Again, this is working perfectly for everything but variants.
Do I have this set up incorrectly? if not, how do I work it so my products with variants abide by the wholesale price rule?