<?php
function hikashop_quantity_render($html,$i,$max_quantity,$min_quantity)
{ $html ='
<table>
<tr>
<td rowspan="2">
<input id="hikashop_product_quantity_field_'.$i.'" type="text" value="'.JRequest::getInt('quantity',$min_quantity).'" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange(\'hikashop_product_quantity_field_'.$i.'\','.$max_quantity.','.$min_quantity.');" />
</td>
<td>
<a id="hikashop_product_quantity_field_change_plus" class="hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange(\'hikashop_product_quantity_field_'.$i.'\',1,'.$max_quantity.','.$min_quantity.');">+</a>
</td>
<td rowspan="2">
'.$html.'
</td>
</tr>
<tr>
<td>
<a id="hikashop_product_quantity_field_change_minus" class="hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange(\'hikashop_product_quantity_field_'.$i.'\',0,'.$max_quantity.','.$min_quantity.');">-</a>
</td>
</tr>
</table>
';
} ?>