Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 6.00 Questions
 Retail Price in Template
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Warren
Starting Member

27 Posts

Posted - July 06 2004 :  10:14:56  Show Profile  Reply with Quote
Hi
Can anyone tell me how to add the retail price and the difference (similar to Hakkatil's "You save this much" code ) to a product template in such a way that if there is no retail price for a product then it does not show on the page. I am running the deluxe version of VPASP 5.

Thanks in advance for your time

Warren

lynch
VP-CART New User

USA
74 Posts

Posted - July 07 2004 :  08:12:16  Show Profile  Reply with Quote
quote:

Can anyone tell me how to add the retail price and the difference (similar to Hakkatil's "You save this much" code ) to a product template in such a way that if there is no retail price for a product then it does not show on the page. I am running the deluxe version of VPASP 5.



Here's how I'm doing it on my store...

$ <p class="caption">Retail Price: [formatcurrency retailprice]</p>
$ <p class="caption">Save [formatsaving cprice]!</p>
<p class="price">Our Price: [formatcurrency cprice]</p>

The dollar sign at the beginning of the line is a signal to VP-ASP to show that line only if the expression in the brackets is present. If you have no "retail price" for an item, the "formatsaving cprice" call fails, and the savings amount won't show.


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