[ic] Displaying q5 field

Kevin Walsh interchange-users@interchange.redhat.com
Thu Nov 29 13:42:01 2001


> I'm trying to modify results.html to display the q5 field. Here is the
> diff of what I currently have:
>
> ...
>
> <       <td align="center">[item-field q5]</td>
>
> I have also tried [item-q5]
>
Ok, [item-q5] is invalid.  [item-field q5] will lookup the q5 column
in the products table, or tables listed in the ProductFiles directive.
I assume that the q5 column you are referring to is in your pricing
table, so try this:

    [item-data pricing q5]

This will return the contents of the q5 column in the pricing table
where the pricing.code column matches the current [item-code].  The
value returned will not be formatted as a currency, so you will get
something like "123.45" instead of "$123.45".

To format the result as a currency value, you could try this:

    [currency][item-data pricing q5][/currency]

You could also use [price code="[item-code]" quantity="5"] to
look up the price of 5 the [item-code] products.  This tag will
format the result as a currency unless you specify the noformat="1"
parameter.

Have a go at that and see what happens.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.uk.com
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/