PDA

View Full Version : Display old price with strikethrough line ?


post89658
03-03-2009, 05:38 AM
Hi -

Im using last ecart and asp/vbscript.

What would be best practice to display a product old price with a strike/line through, and then new price ?
Shpuld I have 2 prices fields in my database, one for regular price and then one field for new price/old price ?

Please advice.

Bjørn-T

Ray Borduin
03-03-2009, 07:01 AM
use a css style to add the line through the price either create a class or add it inline like:

suggested price: <span style="text-decoration:line-through;">$20.00</span><br>
our price: $12.00

post89658
03-03-2009, 07:03 AM
Hi -

Thanx, but I still need to use 2 separate database fields (old/new price), to get this dynamically ?

Ray Borduin
03-03-2009, 07:07 AM
yes, two fields would be needed, unless of course you use a standard discount, then you could use math.