[ic] Stock display change

Michael Goldfarb interchange-users@icdevgroup.org
Tue Nov 5 19:20:01 2002


>> I would think that the easiest way to do this would be to add a new
>> column to the products table. You can then edit
>> products-->mv_metadata.asc to add a field for that column on the item
>> entry screen (requires applying changes after editing).
>>
>> For instance, create a column labeled something like "ship_code" to
the
>> products table. Once you have the data in that column for the items,
you
>> can show it on flypage.html with [item-field ship_code] wherever you
>> want it to display.
>>
>> Hope this helps.
>>
>
>Thanks!
>
>I'll try to do that.. and find and replace all instances of current
stock
>display with my new "ship_code".
>
>Regards,
>Saso

I have made a lot of changes to Foundation, but you should look for the
code that looks something like this on your flypage.html:

[if-item-data inventory quantity < 1]
<b>Out Of Stock<b>
<br>
<a href="[area stock-alert [item-code]]">In-Stock Notification</a>
[else]
<br>
<b>In Stock</b>
[/else]
[/if-item-data]

Just replace all of that with [item-field ship_code] and that will drop
in the value you have in the "ship_code" column of your products table
for the item that is being displayed.