Jump to content

[Solved] Quantity = 5


Recommended Posts

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

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

  • 6 months later...

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, etc

any idea?

Link to comment
Share on other sites

×
×
  • Create New...