Need to hide MSRP on category grid page

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
digitalkemical
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Thu Nov 13, 2008 2:33 pm

Need to hide MSRP on category grid page

Post by digitalkemical » Fri Dec 12, 2008 7:01 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Need to hide MSRP on category grid page

Post by mazhar » Fri Dec 12, 2008 7:07 am

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

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Need to hide MSRP on category grid page

Post by kastnerd » Mon Jun 15, 2009 12:57 pm

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.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Need to hide MSRP on category grid page

Post by NC Software » Mon Jun 15, 2009 1:25 pm

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
Neal Culiner
NC Software, Inc.

Post Reply