an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > General Programming > Display Text for Price in some Conditions
Last Post 5/6/2009 8:40:33 PM By lukezy. 3 replies.
5/6/2009 10:56:01 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Display Text for Price in some Conditions
Hi Luke,
 
We need this function ASAP to operate our site, Please let me know how can I achieve that :
 
If Price = -1 then the Price should be Displayed as  Free Download

If Price = -2 then the Price should bedisplayed as  Call for price

I want to apply the above condition on any Price showed on the Website : ProductSummary and ProductDetail

 
Please guide me a sample code.
 
Thanks,
 
  Bahram 
DotShoppingCart Staff
5/6/2009 11:29:14 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Display Text for Price in some Conditions
Find ProductSummary and ProductDetail user control code behind files and then add C# code to check the price and set the proper color for the price text.
DotShoppingCart Staff
5/6/2009 4:38:13 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Display Text for Price in some Conditions
 There are three prices: CurrentPrice, RetailPrice and DiscountedPrice.... Should I check CurrentPrice.
5/6/2009 8:40:33 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Display Text for Price in some Conditions

Use Product.OurPrice.

DotShoppingCart Staff