Page 1 of 1
including MSRP in FeaturedProductsGrid
Posted: Sat Mar 21, 2009 7:20 am
by milstudy
Evening all!
This shouldn't be too taxing for anyone else but me! I've searched the forums and found slightly similar requests, but none that fit the bill.
I'd like the 'crossed out' MSRP to appear as 'Reg. Price' for each product on the FeaturedProductsGrid, above the "Price" value (to be changed to 'Our Price') - same as the individual product page. Like this:
Thanks in advance,
Adrian
Oz
Re: including MSRP in FeaturedProductsGrid
Posted: Wed Apr 01, 2009 3:48 am
by milstudy
bump
Is this more complex than I thought it would be?
Thanks,
Adrian
Re: including MSRP in FeaturedProductsGrid
Posted: Wed Apr 01, 2009 4:13 am
by mazhar
Try following trick
Edit ConLib/Utility/ProductPrice.ascx.cs file and locate following line
Code: Select all
private string _RetailPriceFormat = "<span class=\"msrp\">{0:ulc}</span> ";
and change it as below
Code: Select all
private string _RetailPriceFormat = "Reg. Price: <span class=\"\">{0:ulc}</span><br />";
Re: including MSRP in FeaturedProductsGrid
Posted: Fri Apr 03, 2009 3:12 am
by milstudy
Hi Mazhar
Thanks for your idea. It worked perfectly in the Category conlibs, unfortunately it does not appear to have made any difference in ConLib:FeaturedProductsGrid.
any other suggestions?
Thanks,
Adrian
Re: including MSRP in FeaturedProductsGrid
Posted: Fri Apr 03, 2009 4:42 am
by mazhar
Edit FeaturedProductsGrid.ascx and locate following code
Code: Select all
<uc:ProductPrice ID="ProductPrice" runat="server" Product='<%#Container.DataItem%>' PriceFormat="Price: {0:ulc}" BasePriceFormat='Price: <span class="msrp">{0:ulc}</span> '></uc:ProductPrice>
and replace it with
Code: Select all
Reg. Price: <span ><%#string.Format("{0:ulc}",Eval("MSRP"))%></span>
<br />
<uc:ProductPrice ID="ProductPrice" runat="server" Product='<%#Container.DataItem%>' PriceFormat="Price: {0:ulc}" BasePriceFormat='Price: <span class="msrp">{0:ulc}</span> '></uc:ProductPrice>
Re: including MSRP in FeaturedProductsGrid
Posted: Fri Apr 03, 2009 6:20 am
by milstudy
Mazhar!
As we say in Australia "Your blood is worth bottling!"
You're a lifesaver, thanks again,
Adrian