jose27madrid Posted November 3, 2008 Share Posted November 3, 2008 I would like product quantity by default to be a 5 instead a 1... is possible? Link to comment Share on other sites More sharing options...
Matthieu Biart Posted November 3, 2008 Share Posted November 3, 2008 Hi Jose!Yes it is possible, but unfortunatly not without editing the source code (but only one caracter to modify!).So please replace inside the following source code (admin/tabs/AdminProduct.php) if ($qty === false) { if (Validate::isLoadedObject($obj)) $qty = $this->getFieldValue($obj, 'quantity'); else $qty = 1; $qty_state = ''; } the number "1" by "5".What you're asking is very easy to made configurable from the Back Office, and is not because we actually never thought about it.Moreover it sounds like a good idea so we'll see about implementing it ;-) Link to comment Share on other sites More sharing options...
jose27madrid Posted November 4, 2008 Author Share Posted November 4, 2008 Thanks for the reply Matthieu. But I was talking about front office product quantity, the quantity that buyer sees when he enter into the shop. I have change the number and upload the file to the server but the number still is "1" in the shop. I do not know if I am doing something wrong. Link to comment Share on other sites More sharing options...
d0m1n1k Posted November 4, 2008 Share Posted November 4, 2008 themes/prestashop/product.tplrow # 197 <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" /> replace {else}1{/if} with 5 Link to comment Share on other sites More sharing options...
jose27madrid Posted November 4, 2008 Author Share Posted November 4, 2008 thank you very much guys. Link to comment Share on other sites More sharing options...
d0m1n1k Posted November 4, 2008 Share Posted November 4, 2008 does it work for you? Link to comment Share on other sites More sharing options...
jose27madrid Posted November 4, 2008 Author Share Posted November 4, 2008 yes, now the quantity for the buyer is always 5 Link to comment Share on other sites More sharing options...
Choy Gonzalez Posted May 4, 2009 Share Posted May 4, 2009 It works! Excellente!Do you know also how to do that when you click add to cart it adds by default 5 products and not 1???Not in the product page, this already done thanks to d0m1n1k, I mean in the featured products, manufacter list, category list, etcany idea? Link to comment Share on other sites More sharing options...
Recommended Posts