<form action="admin.php?p=products-variants_ajax_form" id="variants-ajax-form">
	<input type="hidden" name="iProduct" value="{{$aProduct.iProduct}}" />
	<label for="price">{{$lang.Price}}:</label> <input type="text" id="price" name="fPrice" value="{{$aProduct.fPrice}}" />
	<table class="variants-ajax">
		<tr>
			{{foreach from=$aProduct.aAttributes item=aAttribute}}
				<th>{{$aAttribute.sName}}</th>
			{{/foreach}}
			<th>{{$lang.Price}}</th>
			{{foreach from=$aStores item=sStore}}
				<th>{{$sStore}}</th>
			{{/foreach}}
		</tr>
		{{foreach from=$aProduct.aVariants item=aVariant}}
			<tr>
				{{foreach from=$aProduct.aAttributes item=aAttribute}}
					<td>{{$aAttribute.aValues[$aVariant.aValues[$aAttribute.iAttribute]]}}</td>
				{{/foreach}}
				<td class="price"><input type="text" id="variant-{{$aVariant.iProductVariant}}-Price" name="aPrices[{{$aVariant.iProductVariant}}]" value="{{$aVariant.fPrice}}" /></td>
				{{foreach from=$aStores item=sStore}}
					<td class="stock"><input type="text" id="variant-{{$aVariant.iProductVariant}}-{{$sStore@key}}-Stock" name="aStocks[{{$aVariant.iProductVariant}}][{{$sStore@key}}]" value="{{$aVariant.aStore[$sStore@key].iStock}}" /></td>
				{{/foreach}}
			</tr>
		{{/foreach}}
	</table>
</form>