VirtueMart 1.1.x [ Old version - no longer supported ] > Frequently Asked Questions VM 1.1

Remove/hide quantity arrow buttons

(1/1)

aravot:
To remove/hide quantity arrow buttons from browse and flypage



Edit quantity_box_general.tpl.php in ROOT/components/com_virtuemart/themes/default/templates/product_details/includes/quantity_box_general.tpl.php

Search for


--- Code: ---<input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = document.getElementById(\'quantity'.$prod_id.'\'); var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return false;" />
<input type="button" class="quantity_box_button quantity_box_button_down" onclick="var qty_el = document.getElementById(\'quantity'.$prod_id.'\'); var qty = qty_el.value; if( !isNaN( qty ) &amp;&amp; qty > 0 ) qty_el.value--;return false;" />
--- End code ---

Delete the above code.

Navigation

[0] Message Index

Go to full version