Author |
Topic |
|
patrickong
VP-CART New User
Singapore
58 Posts |
Posted - January 24 2004 : 10:49:46
|
It might be more exciting if there is a red "Sale Price" wording with the original price being strike off to create a more creative visual effect:
See below for a sample:
http://ray1.net/shop/category.asp?catID=3
I hate the shopping cart system above though because it's so damn slow to access any of its products. Maybe there's something wrong with their scripts or database connection.
|
|
jonmadrid
VP-CART New User
USA
192 Posts |
Posted - January 24 2004 : 15:49:58
|
Hi there,
You can accomplish that by modifying your category (or product) template. All you need to is add a CSS style to the price to get the strike through. It would look somehting like this:
<div style="text-decoration: line-through;"> [formatcurrency cprice] </div>
That should do the trick. That would display the price with a strike through it.
All the best,
Jon Madrid -------------------- Madrid Communications Web Design, Development, and Hosting www.madridcom.com
|
|
|
patrickong
VP-CART New User
Singapore
58 Posts |
Posted - January 25 2004 : 10:20:50
|
Hi,
But this would make all the original prices in the template having a strike-through isn't it?
The URL at http://ray1.net/shop/category.asp?catID=3 clearly shows only those item that has a sale price to have a strike-through in the original price.
In VP-ASP, it could contain a logic that detect whether the sale price field is empty or not. If the sale price field is not empty, then it could allow end-users to choose a strike-through over its original price and highlight the sale price in RED font.
:-)
|
|
|
greatphoto
VP-CART Super User
USA
304 Posts |
Posted - May 25 2005 : 23:25:05
|
quote:
In VP-ASP, it could contain a logic that detect whether the sale price field is empty or not. If the sale price field is not empty, then it could allow end-users to choose a strike-through over its original price and highlight the sale price in RED font.
This is a good example of what could be easily possible if we could use ASP code in our HTML product templates. Has anyone figured out how to use ASP code in templates?
|
|
|
greatphoto
VP-CART Super User
USA
304 Posts |
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - May 26 2005 : 05:35:30
|
I guess different people will want to display savings versus original prices in different ways; some people want to show discounted amount, some want to show old price, some want to show discounted percentage, some want a combination; all in different order/format.
Adding a new template field would probably be a good way to go, and just pinch the relevant savings logic from the shopfileio.asp as a base, and then format your stuff in the precise format that you need.
You can also use: $ Saving: [formatsaving cprice]
Note that adding a $ to the front of a line in the template will mean that all the rest of the html in that line won't show if the column's value is null. However, in this case I don't know if that $ would work; it depends on whether formatsaving translates zero to null; see also: http://bigyellowzone.com/shopexd.asp?id=61
Another way of doing a strike through is to use the <s> tags, eg:
<s>[formatcurrency retailprice]</s>
see also:
http://vpasp.com/virtprog/vpaspforum/topic.asp?TOPIC_ID=2863 http://vpasp.com/virtprog/vpaspforum/topic.asp?TOPIC_ID=757
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons
Edited by - devshb on May 26 2005 05:36:15 |
|
|
|
Topic |
|