[ic] Editing random component

Darren interchange-users@icdevgroup.org
Tue Aug 13 18:27:00 2002


>>Hi Everyone,
>>
>>I'm using IC 4.8.5.  I am trying to change
/templates/components/random=20
>>to NOT display the 'Buy Now' button if the quantity in the inventory=20
>>database is < 1 for the item.  I changed the following code.
>>
>><td nowrap align=3D"center">
>>   [if-loop-data inventory quantity <1]
>>	[else]
>>	[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"=20
>>alt=3D"Buy Now">[/order]
>>      [/else]
>>   [/if-loop-field]   <-  Where is the beginning [if-loop field]???
>></td>
>>
>
>Maybe it didn't find the ending [/if-loop-data]
>
>-Steve

Thanks Steve.  I change my last [/if-loop-field] to [/if-loop-data] and
it fixed my problem.

=A0
Darren