[ic] Showing multiple prices

Bill Carr interchange-users@icdevgroup.org
Tue Nov 26 08:40:01 2002


On Tue, 2002-11-26 at 02:01, ACforSale Inc Sales Team wrote:
> I want to be able to show multiple prices for items on the results page
> that have a sale price and only a single price for items that don't.
> 
> I can get two prices for all items with
> 
> <td align="right">
> <b>[item-price]</b><br>
> <strike>$[item-field price]</strike>
> </td>
> 
> But if there is no sale price then the second line is a strikeout of the
> same value as the first line.
> 
> But what I want is to test if [item-price] < [item-field price] and if
> (and only if) so then the second line is shown
> 
> Like this
> 
> <td align="right">
> <b>[item-price]</b><br>
> [if item-price < item-field price]
> <strike>$[item-field price]</strike>
> </td>
> 
> I've searched archives but couldn't find the answer and my understanding
> of the using the syntax is limited so would appreciate any help.
I don't see the difference between [item-field price] and [item-price].

[if-item-field sale_price]
	Reg price: [item-price]
	Sale price: [item-field sale_price]
[else]
	[item-price]
[/else]
[/if-item-field]

-- 
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700