an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Volume Pricing presentation is not understandab...
Last Post 7/7/2010 4:55:55 PM By Bahram. 2 replies.
7/7/2010 1:51:06 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Volume Pricing presentation is not understandable and confusing for customers
The Volum pricing definition is done by admin is apeared the same way on web store and it is confusing as upper thresholds are not shown:
 
currently it shows :

Units Price
 

1          $55.00 
25+     $53.00 
50+     $51.00 
100+  $49.00 
250+  $47.00 
500+  $45.00 

 
We need to show it and it is more reasonable and readable  :
 
1-25            $55.00
26-50          $53.00
51-100        $51.00
101-250      $49.00
251-500+    $45.00

 

How I can achieve this on web page. i sthere any row descrption for prices?
 
Thanks,
 
7/7/2010 4:53:50 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Volume Pricing presentation is not understandable and confusing for customers
Hi Luke,
 
I did found the answere, you can also correct and update your code :
 
In VolumePricing.ascx.cs replace  the line :

<font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">u.Units = 0 == i ? "1+" : string.Format("{0}+", Product.VolumePricingRates[i].Quantity);<font size="2" face="Consolas"><font size="2" face="Consolas">

with this line:

u.Units = i < Product.VolumePricingRates.Count-1 ?

<font size="2" face="Consolas"><font size="2" face="Consolas">

....

 

<font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">Bahram

<font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string<font size="2" face="Consolas"><font size="2" face="Consolas">.Format(<font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">"{0}"<font size="2" face="Consolas"><font size="2" face="Consolas">, Product.VolumePricingRates[i].Quantity + 1) + <font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">"-"<font size="2" face="Consolas"><font size="2" face="Consolas"> + <font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string<font size="2" face="Consolas"><font size="2" face="Consolas">.Format(<font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">"{0}"<font size="2" face="Consolas"><font size="2" face="Consolas">, Product.VolumePricingRates[i+1].Quantity) : <font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">string<font size="2" face="Consolas"><font size="2" face="Consolas">.Format(<font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">"{0}+"<font size="2" face="Consolas"><font size="2" face="Consolas">, Product.VolumePricingRates[i].Quantity + 1) ;

7/7/2010 4:55:55 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Volume Pricing presentation is not understandable and confusing for customers
               
Hi Luke,
 
I did found the answere, you can also correct and update your code :
 
In VolumePricing.ascx.cs replace  the line :
 
u.Units = 0 == i ? "1+" : string.Format("{0}+", Product.VolumePricingRates[i].Quantity);
 
with this line :
               
u.Units = i < Product.VolumePricingRates.Count-1 ? string.Format("{0}", Product.VolumePricingRates[i].Quantity + 1) + "-" + string.Format("{0}", Product.VolumePricingRates[i+1].Quantity) : string.Format("{0}+", Product.VolumePricingRates[i].Quantity + 1) ;

Thanks