Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Suggestions for future release
 Sale Price
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

patrickong
VP-CART New User

Singapore
58 Posts

Posted - January 24 2004 :  10:49:46  Show Profile  Visit patrickong's Homepage  Reply with Quote
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  Show Profile  Visit jonmadrid's Homepage  Reply with Quote
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
Go to Top of Page

patrickong
VP-CART New User

Singapore
58 Posts

Posted - January 25 2004 :  10:20:50  Show Profile  Visit patrickong's Homepage  Reply with Quote
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.

:-)

Go to Top of Page

greatphoto
VP-CART Super User

USA
304 Posts

Posted - May 25 2005 :  23:25:05  Show Profile  Reply with Quote
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?

Go to Top of Page

greatphoto
VP-CART Super User

USA
304 Posts

Posted - May 26 2005 :  00:30:09  Show Profile  Reply with Quote
Duh...I guess I've had too many late nights with my newborn son. Probably the best way to do this is by adding custom template fields. This is covered here:

http://www.vpasp.com/virtprog/vpaspforum/topic.asp?TOPIC_ID=3242

Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - May 26 2005 :  05:35:30  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00