lynch
VP-CART New User
USA
74 Posts |
Posted - July 07 2004 : 08:12:16
|
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.
|
|
|