Page 1 of 1

Need to hide MSRP on category grid page

Posted: Fri Dec 12, 2008 7:01 am
by digitalkemical
Can't seem to find the code that controls whether or not the MSRP is shown on the Category Grid Page. It seems as though there is only one line of code for the product price and that includes the MSRP. I tired looking also in the ConLib for ProductPrice.ascx and could not find the MSRP code in it.

Re: Need to hide MSRP on category grid page

Posted: Fri Dec 12, 2008 7:07 am
by mazhar
In the CategoryGridPage.ascx.cs file locate and comment out the following code

Code: Select all

//OUTPUT RETAIL PRICE IF AVAILABLE
                if (product.MSRP > 0 && !product.UseVariablePrice)
                {
                    string msrp = string.Format("<span class=\"msrp\">{0:ulc}</span> ", product.MSRP);
                    itemTemplate1.Controls.Add(new LiteralControl(msrp));
                }

Re: Need to hide MSRP on category grid page

Posted: Mon Jun 15, 2009 12:57 pm
by kastnerd
If MSRR is the same as your price shouldnt it hide MSPR on both category and product pages?

Reason why to not have MSRP blank is some users have lower price based on the user group.

Re: Need to hide MSRP on category grid page

Posted: Mon Jun 15, 2009 1:25 pm
by NC Software
A lot of the ASCX pages have a "showmsrp" property that is not available in the corresponding ConLib. So instead of commenting out code, first check the HTML side to see if there is a ShowMSRP property which you can just change from "true" to "false". I did a search on my entire solution and set them all to FALSE.

FYI