VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Frequently Asked Questions VM 1.1 => Topic started by: aravot on October 21, 2009, 19:05:44 pm

Title: Remove/hide quantity arrow buttons
Post by: aravot on October 21, 2009, 19:05:44 pm
To remove/hide quantity arrow buttons from browse and flypage

(http://www.protechsystems.us/stuff/joomla/quantity-arrow-button.png)

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: [Select]
<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;" />

Delete the above code.

(http://www.protechsystems.us/stuff/joomla/quantity-arrow-button-no.png)