Login  Register

Re: Maximum order quantity of a product

Posted by Pritam Kute on Dec 03, 2018; 10:47am
URL: http://ofbiz.116.s1.nabble.com/Maximum-order-quantity-of-a-product-tp4729076p4729079.html

Hello Deepak,

As far as I know, there is no direct support available in OFBiz for your
requirement. But it would be a good addition to the codebase if we can
design full features around quantity rules, in a similar fashion as "Price
Rules".

There can be the multiple cases around quantity which we can handle such as
1. Min/Max product quantity to be ordered.
2. Rule-based product quantity handling such as based on already added
products in the cart.

Just a thought!

Thanks and Regards
--
Pritam Kute


On Mon, Dec 3, 2018 at 3:38 PM Pierre Smits <[hidden email]> wrote:

> Hi Deepak,
>
> Instead of modifying the model for the entity such a parameter could be set
> as an attribute of the product. IMO, we have dozens of *Attr entities that
> are greatly under-utilised in favour of adding fields to their associated
> parent entity.
>
> Best regards,
>
> Pierre Smits
>
> *Apache Trafodion <https://trafodion.apache.org>, Vice President*
> *Apache Directory <https://directory.apache.org>, PMC Member*
> Apache Incubator <https://incubator.apache.org>, committer
> *Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
> since 2008*
> Apache Steve <https://steve.apache.org>, committer
>
>
> On Mon, Dec 3, 2018 at 9:43 AM Deepak Nigam <[hidden email]>
> wrote:
>
> > Hello all,
> >
> > I need to set the maximum order quantity for a particular product for the
> > e-commerce site. I have provided the client-side validation for the same
> > but it is easily breakable using request interceptors. Also, I don't want
> > to hardcode it at the backend, considering multiple clients of the ERP
> > solution.
> >
> > As far as I know, we can set the minimum order quantity using product
> price
> > type "MINIMUM_ORDER_PRICE". Is there a way by which we can set the
> maximum
> > order quantity of a given product (both from front-end and backend)?
> >
> > Thanks & Regards
> > --
> > Deepak Nigam
> > HotWax Systems Pvt. Ltd
> >
>