Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/edit_add_product_list_sub_variants.tpl
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td width="24%"><strong>Variant Name</strong></td>
    <td width="5%"><strong>Show</strong></td>
    <td width="13%"><strong>Surcharge</strong></td>
    <td width="11%"><strong>Sort Order</strong></td>
    <td width="47%"><strong>Current Stock Level</strong></td>
  </tr>
{section name=list_all_product_sub_variants loop=$list_all_product_sub_variants}
{if $list_product_variant_groups[list_product_variant_groups].variant_group_id==$list_all_product_sub_variants[list_all_product_sub_variants].variant_group_id}
<tr>
<td> 
{section name=list_all_sub_variants loop=$list_all_sub_variants}
{if $list_all_product_sub_variants[list_all_product_sub_variants].variant_id==$list_all_sub_variants[list_all_sub_variants].variant_id}
<input type="text" id="edit_variant_name_{$list_all_sub_variants[list_all_sub_variants].variant_id}" value="{$list_all_sub_variants[list_all_sub_variants].variant_name}" disabled="disabled"  /> 
{/if}
{/section}
</td>
<td>
{if $list_all_product_sub_variants[list_all_product_sub_variants].show_variant=="yes"}
<input type="checkbox" name="{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}_variant_id" id="{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}_variant_id"  value="yes" checked="checked" />
{else}
<input type="checkbox" name="{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}_variant_id" id="{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}_variant_id"  value="yes" />
{/if}
</td>
<td>$<input type="text" id="edit_variant_surcharge1_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" name="edit_variant_surcharge1_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" size="5" value="{$list_all_product_sub_variants[list_all_product_sub_variants].surcharge}" />
</td>
<td>
<input type="text" id="edit_variant_order_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" name="edit_variant_order_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" size="5" value="{$list_all_product_sub_variants[list_all_product_sub_variants].sort_order}"/>
</td>
<td><input type="text" id="edit_variant_qty_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" name="edit_variant_qty_{$list_all_product_sub_variants[list_all_product_sub_variants].variant_id}" size="5" value="{$list_all_product_sub_variants[list_all_product_sub_variants].qty}"/>
</td>

</tr>
{/if}

{/section}
</table>
Return current item: Simple PHP Shopping cart - asaancart