[Skip to main content](#vessel-content)

#   Custom product quantity.

##

- **[kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")**
- [![kapis555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14823-kapis555 "View kapis555's Profile") Topic Author
- [ Offline](/forum/user/14823-kapis555)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 5 months ago [\#105202](#105202) by [kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")  *[Custom product quantity.](/forum/4-how-to/82469-custom-product-quantity#105202 "Hello!  Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?  Best regards!")* was created by *[kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")*

Hello!

Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?

Best regards!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgyNDY5LWN1c3RvbS1wcm9kdWN0LXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

13 years 5 months ago [\#105209](#105209) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom product quantity.](/forum/4-how-to/82469-custom-product-quantity#105209 "Hello!  Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?  Best regards!")*

Hi,

So you shouldn't set a minimum quantity if you don't want it to be enforced.
In that case, edit the file quantity of the view product and set yourself the min quantity for that product page add to cart by adding this line at the top:
&lt;?php $this-&gt;row-&gt;product_min_per_order = 4; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgyNDY5LWN1c3RvbS1wcm9kdWN0LXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")**
- [![kapis555's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14823-kapis555 "View kapis555's Profile") Topic Author
- [ Offline](/forum/user/14823-kapis555)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 5 months ago [\#105257](#105257) by [kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")  Replied by *[kapis555](/forum/user/14823-kapis555 "View kapis555's Profile")* on topic *[Custom product quantity.](/forum/4-how-to/82469-custom-product-quantity#105257 "Hello!  Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?  Best regards!")*

But the problem is that I have ~4000 products and each product have different quantity. Some I need 'product_min_per_order = 5' other 'product_min_per_order = 2'

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgyNDY5LWN1c3RvbS1wcm9kdWN0LXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#105272](#105272) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom product quantity.](/forum/4-how-to/82469-custom-product-quantity#105272 "Hello!  Problem is that when person add's product to cart Minimum quantity is for example 4, but it can't be changed, I need to make somehow that after adding that min quantity it can be changed to for example 3. Is there any solution ?  Best regards!")*

Hi,

The option "Minimum quantity per order" (product_min_per_order) is per product so, where is the problem exactly ?
You can set this value, per product (and on variants too, if you want to override the parent product value).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgyNDY5LWN1c3RvbS1wcm9kdWN0LXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
