News:

Looking for documentation? Take a look on our wiki

Main Menu

Disable text entry of quantity input box

Started by Picklehead, January 12, 2023, 01:33:30 AM

Previous topic - Next topic

Picklehead

HI,
As the title does anyone know of an effective way to disable text entry of the quantity input box on product details and cart. Input box must remain to display results of + and - buttons

Thanks!

Joomla! 3.10.11 & VirtueMart 3.8.7

GJC Web Design

<input type="text" class="quantity-input js-recalculate" name="quantity[]"
               data-errStr="<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED')?>"
               value="<?php echo $init; ?>" init="<?php echo $init; ?>" step="<?php echo $step; ?>" <?php echo $maxOrder; ?>  readonly />


templates\YOURS\html\com_virtuemart\sublayouts\addtocartbar.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation