Author Topic: type="number" instead of type="text" for the addtocart quantity  (Read 481 times)

arcturus

  • Jr. Member
  • **
  • Posts: 111
  • VirtueMart Version: 3.6.10 10211
type="number" instead of type="text" for the addtocart quantity
« 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
Code: [Select]
$editable = 'text';for
Code: [Select]
$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).
Cheers,
George
https://www.proxima-mundi.ro

Now I'm using Joomla! 3.9.15 and VM 3.6.10 10211 on PHP 7.3.9