error in "Quantity Box" updating yourShop-Virtuemart theme 1.1.9update

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Mon Oct 24, 2011 6:40 pm
Hello to all such:

I recently encountered this problem when upgrading to "Virtuemart 1.1.9"


Error.jpg



Does not work on updating yourShop - Virtuemart theme 1.1.9 update



Next: What I hize to solve

I replaced the file ("quantity_box_general.tpl.php" of version1.1.9) for the file ("quantity_box_general.tpl.php" of version1.1.8)


content
components com_virtuemart default templates product_details includes


Ahora si funciona.jpg



Everything worked again.

I hope I have done the right thing, and this action does not cause problems in the future.

sorry for my English, but I'm from Mexico and speak Spanish

Greetings to all. :)
User avatar
Senior Boarder

GK User
Tue Jan 31, 2012 3:50 pm
Hi, I have this same problem..

Where can I get hold of the 1.1.8 file? I downloaded the 1.1.8 template package, but can't find it! Thanks for your help..
User avatar
Junior Boarder

GK User
Tue Jan 31, 2012 4:02 pm
thanks.. I found the file. fixed =] thanks for finding the solution.
User avatar
Junior Boarder

GK User
Sun Jan 27, 2013 12:59 pm
In /components/com_virtuemart/themes/default/templates/product_details/includes/quantity_box_general.tpl.php

replace
Code: Select all
$html .= '<input type="text" class="inputboxquantity" size="4" id="quantity'.$prod_id.'" name="quantity[]" value="'.$quantity.'" />
      <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;" />
      ';


with

Code: Select all
$html .= '<input type="text" class="inputboxquantity" size="2" id="quantity'.$prod_id.'" name="quantity[]" value="'.$quantity.'" />
                <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;" />
                ';



and will work:)
User avatar
Fresh Boarder


cron