Author Topic: Change quantity field type (cart's view)  (Read 271 times)

eclipsada

  • Beginner
  • *
  • Posts: 16
Change quantity field type (cart's view)
« on: September 04, 2017, 16:40:36 pm »
Hello,
Is it possible to change the quantity field type from text area to list (please check attached images)?

Thank you.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7617
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Change quantity field type (cart's view)
« Reply #1 on: September 04, 2017, 20:08:31 pm »
I assume just changing the input to a select manually in the cart sublayout would do it
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2338
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Change quantity field type (cart's view)
« Reply #2 on: September 05, 2017, 00:22:12 am »
Use input type text to number
<input type="number">
See for eg. https://www.wufoo.com/html5/attributes/04-minmaxstep.html

eclipsada

  • Beginner
  • *
  • Posts: 16
Re: Change quantity field type (cart's view)
« Reply #3 on: September 08, 2017, 18:51:53 pm »
Perfect!
Thank you.