[ic] Help on some Code on Flypage and Components

Andrew Rich andrew at mapsdownunder.com.au
Mon Jan 31 17:23:03 EST 2005


> > Hi
> >
> > IC 5.3
> >
> > I am trying something like this on the flypage.
> >
> > [if-item-field price < [item-data products price]]
> > [else]
> >   <strike>[L]RRP Price[/L]: <b>$[item-data products
> > price]</b></strike><br>
> > [/else]
> > [/if-item-field]
> >   [L]Our Price[/L]: <b>[item-price]</b><br>
> >
> 
> Here is one way (untested code)
> 
> [if term="[item-field price]" op="<" compare="[item-data products
> price]"]
> 	Item field price is less than item data products price
> [else]
>   	Item field price is not less than item data products price
> [/else]
> [/if]
> --
> Marty Tennison <marty at sediva.com>
> 
Thank you Marty.  

I needed item-price and noformat.  

I have ended up with the following.  I now believe that item-field and
item-data result in the same value but item-price is the selling price
based on other factors.

[if term="[item-price noformat]" op="<" compare="[item-data products
price]"]
   [L]Reg Price[/L]<strike>: <b>$[item-data products price]</b></strike>
[if session logged_in]
   [L] Member Price[/L]: <b>[item-price]</b><br>
[else]
   [L] Special Price[/L]: <b>[item-price]</b><br>
[/else]
[/if]
 [else]
   [L]Price[/L]: <b>[item-price]</b><br>
 [/else]
 [/if]

Thanks again
Andrew



More information about the interchange-users mailing list