# Price based on quantity setup

**URL:** <https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268>\
**Category:** Developing for Dolibarr\
**Tags:** Settings, Quantities, Products, Prices, Setup-Configuration\
**Created:** [September 30, 2021, 3:40am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268 "2021-09-30T03:40:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nirmal](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@Nirmal](https://www.dolibarr.org/forum/u/Nirmal)\
**Post date:** [September 30, 2021, 3:40am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/1 "2021-09-30T03:40:01Z")

</div>

Hello, i have seen that price in dolibarr can be based on quantity ordered. The parameter is available in other setup, called PRODUIT\_CUSTOMER\_PRICES\_BY\_QTY  
Unfortunately, there is little documentation i have found regarding the working of this feature.  
I will have dolibarr integrated with either prestashop or woocommerce, each with B2B plugins. Both offer prices based on quantity ordered.  
I was wondering if the same feature is available in dolibarr, and how the store would communicate with dolibarr  
Thank you

---

<div class="post-metadata">

**Author:** ![cfoellmann](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/cfoellmann/32/2887_2.png) [@cfoellmann](https://www.dolibarr.org/forum/u/cfoellmann)\
**Post date:** [October 1, 2021, 1:32pm UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/2 "2021-10-01T13:32:41Z")

</div>

I am also very interested in setting up pricing for products ordered from suppliers that have a reduced price at higher quantities

---

<div class="post-metadata">

**Author:** ![Nirmal](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@Nirmal](https://www.dolibarr.org/forum/u/Nirmal)\
**Post date:** [October 1, 2021, 2:55pm UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/3 "2021-10-01T14:55:02Z")

</div>

Let’s hope someone knows how its done

---

<div class="post-metadata">

**Author:** ![mgribaudo](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/mgribaudo/32/3096_2.png) [@mgribaudo](https://www.dolibarr.org/forum/u/mgribaudo)\
**Post date:** [October 4, 2021, 8:22am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/4 "2021-10-04T08:22:22Z")

</div>

I took a fast look at the code, it looks like the features have still not been enabled.  
Maybe in one of the next versions …

---

<div class="post-metadata">

**Author:** ![Nirmal](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@Nirmal](https://www.dolibarr.org/forum/u/Nirmal)\
**Post date:** [October 4, 2021, 9:01am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/5 "2021-10-04T09:01:09Z")

</div>

Ok, thank you for the response

---

<div class="post-metadata">

**Author:** ![milenmk](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/milenmk/32/4128_2.png) [@milenmk](https://www.dolibarr.org/forum/u/milenmk)\
**Post date:** [October 16, 2021, 3:25pm UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/6 "2021-10-16T15:25:08Z")

</div>

> [@Nirmal](#):
>
> PRODUIT\_CUSTOMER\_PRICES\_BY\_QTY

IT IS working. Do following:

1. Go to “Home \> Setup \> Other Setup”
2. Paste “PRODUIT\_CUSTOMER\_PRICES\_BY\_QTY” in columns 1 and 3 and “1” in column 2 (see attached) and click the “ADD” button.
3. Go to some product \> tab “Selling prices”. Below the current price, you can see " Different prices by quantity [(Activate)](http://localhost/dolibarr2v14/product/price.php?id=43&action=activate_price_by_qty&level=1)"
4. Click on “Activate”
5. Have fun. )see second attachment when the feature is activated)

P.S.: This is for Dolibarr v14.0.1

 ![Screenshot_1](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/e/e9e38704acabd7f8f8f9fdf18fed28d5ac685c31.png)

 ![Screenshot_3](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/b/b2372aec0571e1a5456e953e56e14e142fd60d48.png)

---

<div class="post-metadata">

**Author:** ![kcat75](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@kcat75](https://www.dolibarr.org/forum/u/kcat75)\
**Post date:** [January 11, 2022, 6:44pm UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/7 "2022-01-11T18:44:55Z")

</div>

On 14.0.5 that parameter doesn’t work if you don’t set MAIN\_FEATURES\_LEVEL = 1. Bug or feature?

Activate dont makes anything if MAIN\_FEATURES\_LEVEL = 0

---

<div class="post-metadata">

**Author:** ![cfoellmann](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/cfoellmann/32/2887_2.png) [@cfoellmann](https://www.dolibarr.org/forum/u/cfoellmann)\
**Post date:** [January 15, 2022, 10:30am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/8 "2022-01-15T10:30:58Z")

</div>

Problem is that it is fixed for these quantities.

It is normal to have lower per 1 prices if you buy more than x pieces.

---

<div class="post-metadata">

**Author:** ![kcat75](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@kcat75](https://www.dolibarr.org/forum/u/kcat75)\
**Post date:** [January 17, 2022, 11:16am UTC](https://www.dolibarr.org/forum/t/price-based-on-quantity-setup/21268/9 "2022-01-17T11:16:27Z")

</div>

Yes, and with this behavior, if you change the quantity in the order, the price remains unchanged.

For example, if a product is worth 10 euros per unit and 10 units are 90 (9 euros per unit), if I put 10 units and then lower it in the order to 8 units, they are still worth 9 euros.

As it works right now this module doesn’t make sense, and it is a very basic functionality for an erp.
