[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Editing random component
Hi Everyone,
I'm using IC 4.8.5. I am trying to change /templates/components/random
to NOT display the 'Buy Now' button if the quantity in the inventory
database is < 1 for the item. I changed the following code.
<td nowrap align=3D"center">
[if-loop-data inventory quantity <1]
[else]=20
[if-loop-data options o_modular]
[page [loop-code]]
[else]
[order [loop-code]]
[/else]
[/if-loop-data]
<img align=3D"top" src=3D"__THEME_IMG_DIR__buynow.gif" =
border=3D"0"
alt=3D"Buy Now">[/order]
[/else]
[/if-loop-field]
</td>
=A0
But when it executes it display the "[if-loop-data inventory quantity
<1][else]" code on the page instead of interpreting it. I have use
[if-item-data inventory quantity <1] on the results page and it worked
fine. Can someone tell me what I am doing wrong?
Thanks
=A0
Darren
=A0=A0
Visit our web site at http://www.daboy.com/