PDA

Zobacz pełną wersję : virtuemart+ dodaj do koszyka



gozer
18-10-2012, 14:29
Witam! Nie mogę w sklepi dodać przyciskami większej ilość produktów tylko wpisać ręcznie, przy "Dodaj do koszyka". Co to może być? Nic nie zmieniałem w ustawieniach, ani w plikach. Jest standardowy wygląd.
pozdrawiam
www.wydawnictwo-olimpia.eu

gozer
18-10-2012, 15:25
w pliku:
/components/com_virtuemart/themes/vm_red/templates/product_details/includes/quantity_box_general.tpl.php

należy poprawić z:

--------------------------------------------------
<input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = this.parentNode.elements[\'quantity[]\']; 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 = this.parentNode.elements[\'quantity[]\']; var qty = qty_el.value; if( !isNaN( qty ) && qty > 0 ) qty_el.value--;return false;" />
---------------------------------------------------

na:
-----------------------------------------------------
<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 ) && qty > 0 ) qty_el.value--;return false;" />