Changing Default Quantity in Magento from 0 to 1
By default, Magento will either display a 0 or leave the quantity field blank on product pages. There are many articles online explaining that to correct this, edit the addtocart.phtml file and change the Magento function
getProductDefaultQty to use the
The correct process is to simply define the default quantity in the Magento back office.
System >> Catalog >> Inventory >> Product Stock Options
Then look for ‘Minimum Qty Allowed in Shopping Cart’ and click ‘Add Minimum Qty’ and add a minimum quantity of ‘1’ to the appropriate customer group(s) and then save changes.
Now the default quantity on product pages will be pre-filled with 1 for your customers. With no code change necessary.