VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: man.of.earth on October 18, 2018, 20:04:28 PM

Title: type="number" instead of type="text" for the addtocart quantity
Post by: man.of.earth on October 18, 2018, 20:04:28 PM
Hello everyone,

It can be benefited from the type number in HTML5 by replacing type="text" for type="number" for the addtocart quantity:
line 90 in /sublayouts/addtocartbar.php
replace
$editable = 'text';
for
$editable = 'number';
Although for the productdetails pages and category views it is a duplication of the already present + and - buttons, it is useful in the checkout view, as the quantities of the products in the cart can be easily changed (by two clicks).