Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 7 of 7

Thread: Hiding Regular Price for customer level

  1. #1
    jdudley is offline Member
    Join Date
    Oct 2007
    Posts
    54

    Default Hiding Regular Price for customer level

    Is there a way to hide the Regular price when you are logged in as a different customer level with a lower price?

  2. #2
    nihon is offline Senior Member
    Join Date
    May 2008
    Posts
    150

    Default

    Try use CSS.. i think this should work
    Version (Code/DB):
    AspDotNetStorefront ML 8.1.2.0/8.1.2.0

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    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.

  4. #4
    davlun is offline Member
    Join Date
    Apr 2010
    Posts
    36

    Default What if you dont have source

    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

  5. #5
    dvdbglw is offline Member
    Join Date
    Jun 2009
    Posts
    44

    Default were you able to hide regular price?

    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.

  6. #6
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    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;
    }

  7. #7
    dvdbglw is offline Member
    Join Date
    Jun 2009
    Posts
    44

    Default

    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.

    HTML Code:
    <span style="color: red;" class="LevelPrice">Tier 3&nbsp;Price Per Case:&nbsp;$10.00</span>
    We would like it to be rendered as:

    HTML Code:
    <span style="color: red;" class="LevelPrice">Your Price Per Case:&nbsp;$0.00</span>
    Note "Level 3" is removed and we would then change the sale prompt to say, "Your Price Per Case".

    So setting LevelPrice display to none would hide it all.
    Last edited by dvdbglw; 06-14-2010 at 07:02 AM.