[ic] Multiple product layout on flypage.html
Andre Bunting
andreb at techess.com
Mon Apr 25 08:54:11 EDT 2005
Good day all,
I was wondering .. in my case I have clocks and watches..
now on the flypage.html.. I was wondering if I can have an if statement to
tell the flypage which layout to show, either the layout for clocks or the
layout for watches..
Example :
[if product-group = clocks]
<table width="70%" border="0" cellspacing="0" cellpadding="5">
<tr valign="middle">
<td align=center class="contentbar1">
<big>[item-field category] : <b>[item-description]</b></big>
</td>
</tr>
<tr valign="middle">
<td align=center>
<table cellspacing=0 cellpadding=3 align=center>
<tr>
<td valign="center" align="left">
[if-item-field image]
<IMG SRC="/battooclocks/images/items/[item-field image]"
ALT="[item-filter entities][item-description][/item-filter]"
title="[item-filter entities][item-description][/item-filter]" BORDER=0>
[/if-item-field]
</td>
<td valign="center" align="center">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td colspan="2">
[item-field comment]<br><br>
<b>Colour : </b>[item-field colour] <b>Case
Material :</b> [item-field material_case][item-field
other_material_case] <B>Dial Material :
<b/>[item-field material_dial][item-field other_material_dial]<br><br>
<b>Dimensions(inches) :</b> [item-field dimensions_width]
<b>x</b> [item-field
dimensions_height] <b>Dial Dimensions :</b>[item-field
dimensions_Dial]
<br><br>
<b>Type of Chime :</b>[item-field chime_type]
<b>Strikes : </b>[item-field strike]
<br><br>
<b>Year Created :</b>[item-field year_produced]
<br><br>
<b>Room Location :</b>[item-field room_location]
<b>Wall Location : </b>[item-field
wall_location]
</td>
</tr>
[if file products/specs.txt]
[loop search="
fi=specs.txt
st=text
sf=sku
se=[item-code]
op=eq
co=yes
rf=header,detail
"][on-match]
<tr>
<td style="contentbar1" colspan=2><img
src="/battooclocks/images/bg.gif" alt="" height=3></td>
</tr>
[/on-match]
[list]<tr>
<td style="contentbar1">
<B>[loop-param header]:</b>
</td>
<td>
[loop-param detail]
</td>
</tr>
[/list]
[on-match]
<tr>
<td style="contentbar1" colspan=2><img
src="/battooclocks/images/bg.gif" alt="" height=3></td>
</tr>
[/on-match]
[/loop]
[/if]
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
[if ordered [item-code]]
[msg arg.0="[page ord/basket]" arg.1="</a>"]This item is
currently in your %sshopping cart%s.[/msg]
<br>
[/if]
[table-organize cols=2 table=' ' font="size=1" pretty=1]
[item-options td=1 label=1 bold=1 price=1]
[/table-organize]
</td>
</tr>
<tr>
[if-item-data inventory quantity < 1]
<td align="left">
<b>[L]Out Of Stock[/L]<b>
<br>
<a href="[area stock-alert [item-code]]">[L]In-Stock
Notification[/L]</a>
</td>
[else]
<td align="left">
<b>[L]In Stock[/L]</b>
</td>
[/else]
[/if-item-data]
<td align="right">
[L]Quantity[/L]: <input type="text" name="mv_order_quantity"
size="2" value="1">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="contentbar1">
<table width="100%">
<tr>
<td align="left">
[L]Price[/L]: <b>[item-price]</b>
</td>
<td align="right">
<input type="image"
src="/battooclocks/images/__THEME_IMG_DIR__buynow.gif" border="0"
value="[L]Buy it Now![/L]">
</td>
</tr>
</table>
</td>
</tr>
[if variable FORUM_PRODUCTS]
<tr>
<td>
[forum top="[item-code]" display_page="forum/display" /]
<p>
[page href="forum/reply"
form="
product=1
mv_arg=[item-code]
"
][L]Comment on this product.[/L]</A>
</p>
</td>
</tr>
[/if]
</table>
[else]
What ever I want to display for watches
[end if]
Is the approve possible ? if so how to do it.. secondly .. what would I have
to do so that in the admin section I would have two sets of input screens..
one for clocks.. others for watches ?
Andre Bunting
I have been reading the archives.. and not finding anything along this
lines.. or I might have just been looking in the wrong subject heading
More information about the interchange-users
mailing list