Now this can be done without any programming - only through configuration changes in the backend as follows:
- Go to Admin Panel -> System -> Configuration -> Inventory-> Product Stock Options from the Menu
- Click on Add Minimum Qty button (next to Minimum Qty Allowed in Shopping Cart option)
- Choose Customer Group: ALL GROUPS as you want this to be applied to all users
- Enter 1 for Minimum Qty
- Save Config
Abracadabra! The work is done - now products page quantity box is defaulted to 1.
Thanks for this, very good solution! I would be messing around with javascript to add "1" somehow or by templates.. but this was fast :)
ReplyDeleteYep - I prefer doing such changes through configuration rather than through code which could possible break with the next update!
ReplyDeleteI get a strange "bug/feature" after enabling this -> if simple products inside configurable product have stock = 1 or 0, than the whole configurable product becomes "out of stock"! Any ideas? Tenks
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThanks a lot......:)
ReplyDeleteThis worked great, but found a bug in magento 1.7 i had to actually create the rule twice, because it would always delete the first one.
ReplyDeleteI've created the minimum quantity of 1 in the default config but it doesn't show up in any of my other stores and the option isn't available to them in their configs. Any ideas?
ReplyDeleteI also found I had to Add Minimum Qty rule twice in Magento 1.8 in order for it to save. Then it worked like a charm!
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis was lovely, thanks for writing this
ReplyDelete