including MSRP in FeaturedProductsGrid

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
milstudy
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Tue Dec 16, 2008 8:30 am

including MSRP in FeaturedProductsGrid

Post by milstudy » Sat Mar 21, 2009 7:20 am

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:

Image

Thanks in advance,

Adrian
Oz

milstudy
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Tue Dec 16, 2008 8:30 am

Re: including MSRP in FeaturedProductsGrid

Post by milstudy » Wed Apr 01, 2009 3:48 am

bump

Is this more complex than I thought it would be?

Thanks,
Adrian

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

Re: including MSRP in FeaturedProductsGrid

Post by mazhar » Wed Apr 01, 2009 4:13 am

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 />";

milstudy
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Tue Dec 16, 2008 8:30 am

Re: including MSRP in FeaturedProductsGrid

Post by milstudy » Fri Apr 03, 2009 3:12 am

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

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

Re: including MSRP in FeaturedProductsGrid

Post by mazhar » Fri Apr 03, 2009 4:42 am

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>

milstudy
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Tue Dec 16, 2008 8:30 am

Re: including MSRP in FeaturedProductsGrid

Post by milstudy » Fri Apr 03, 2009 6:20 am

Mazhar!

As we say in Australia "Your blood is worth bottling!" :D :D :D

You're a lifesaver, thanks again,

Adrian

Post Reply