Is there a way to hide the Regular price when you are logged in as a different customer level with a lower price?
Is there a way to hide the Regular price when you are logged in as a different customer level with a lower price?
Try use CSS.. i think this should work
Version (Code/DB):
AspDotNetStorefront ML 8.1.2.0/8.1.2.0
If you have a source, you can as well do this in GetVariantPrice() method from XSLTExtensionBase.cs class. Just add a condition like: if (customerLevelPrice > regularPrice), then do not display RegularPrice.
In my case, we have some products that are assigned to customer levels that do not vary in price between levels or default.
In the product detail it says something like:
Regular Price: $12.99
Gold Regular Price: $12.99
Where the price is the same. Ideally I would like to hide either of them, but think hiding the customer level price might be best. It is rather redundant the same price twice.
David
Did you find a solution to this? We would like to hide the Customer Level portion of the sale prompt. Any ideas? So in your example,
Regular Price: $12.99
Gold Regular Price: $12.99
we would want "Gold" removed. We don't have source code.
If you do not have source, you can hide it via style.css. Open that file and look for .SalePrice and add display:none;
e.g.
Code:.SalePrice { color: #cc0000 !important; display:none; }
I see where you're heading with this. It's actually LevelPrice in our situation as this pertains to Customer Levels. Here is the html that is rendered.
We would like it to be rendered as:HTML Code:<span style="color: red;" class="LevelPrice">Tier 3 Price Per Case: $10.00</span>
Note "Level 3" is removed and we would then change the sale prompt to say, "Your Price Per Case".HTML Code:<span style="color: red;" class="LevelPrice">Your Price Per Case: $0.00</span>
So setting LevelPrice display to none would hide it all.
Last edited by dvdbglw; 06-14-2010 at 07:02 AM.