Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/edit_product_list_sub_variants.tpl
{section name=list_all_product_sub_variants loop=$list_all_product_sub_variants}
<div>
{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}

{if $list_all_product_sub_variants[list_all_product_sub_variants].show_variant=="yes"}
Show <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}
Show <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}
{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}
Surcharge: $ <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}" /> {if $list_product_variant_groups[list_product_variant_groups].enable_stock=="yes"}Quantity: <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}"/>
{/if} Sort order: <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}"/>
<br />
{/if}
</div>
{/section}
Return current item: Simple PHP Shopping cart - asaancart