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