Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Minimum quantity when ordering in webshop

By
Mario Gielissen | Openworx
on 11/23/15, 3:10 AM 347 views

When ordering a product in Odoo webshop, the quantity is default 1. Is it possible to have a minimum quantity (higher then 1)?

0
Nilesh Sheliya
On 5/21/16, 10:16 AM

Yes, You can set minimum quantity higher than one for order a product in Odoo webshop.

You have to make change in view "Select Quantity" in Odoo to directly  make changes in the current database. For that, open this view from Settings --> Technical --> User Interface --> Views menu. Search for "Select Quantity" view. Open that view and change below line. In below line, I have set default quantity 5, you can set whatever you want.

<input type="text" class="form-control" data-min="1" name="add_qty" value="5"/>

If you want to directly change in code, than open /addons/website_sale/views/templates.xml file and search "Select Quantity",than change the line as like above changes. If you do modification in website_sale module, you have to upgrade website_sale module after making changes in code.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/23/15, 3:10 AM
Seen: 347 times
Last updated: 5/21/16, 10:16 AM