Author Topic: Remove/hide quantity arrow buttons  (Read 8111 times)

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Remove/hide quantity arrow buttons
« on: October 21, 2009, 19:05:44 pm »
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: [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.