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

#   How to limit sold product quantity during 1 day for 1 user?

##

- **[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")**
- [![DimLVL's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32108.jpg)](/forum/user/32108-dimlvl "View DimLVL's Profile") Topic Author
- [ Offline](/forum/user/32108-dimlvl)

Less More

- Posts: 61
- Thank you received: 0
-
-

10 years 3 weeks ago [\#254185](#254185) by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")  *[How to limit sold product quantity during 1 day for 1 user?](/forum/35-orders-management/887268-how-to-limit-sold-product-quantity-during-1-day-for-1-user#254185 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6  Hello, I want to sell up to 5 pcs of Each product daily. Not more, to avoid wholesalers during our sales. We will have 2000+ product, so adding filters manually for each product in Hikashop -&gt; Products -&gt; Limit is not a good idea. Nor we can't limit category. Selling multiple products up to 5 pcs is good for us. As I understood, the limit in product listing is for always, but we need to reset it next day after purchase. How can I manage that?")* was created by *[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6

Hello,
I want to sell up to 5 pcs of Each product daily. Not more, to avoid wholesalers during our sales.
We will have 2000+ product, so adding filters manually for each product in Hikashop -&gt; Products -&gt; Limit is not a good idea. Nor we can't limit category. Selling multiple products up to 5 pcs is good for us.
As I understood, the limit in product listing is for always, but we need to reset it next day after purchase.
How can I manage that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NzI2OC1ob3ctdG8tbGltaXQtc29sZC1wcm9kdWN0LXF1YW50aXR5LWR1cmluZy0xLWRheS1mb3ItMS11c2VyP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 3 weeks ago [\#254195](#254195) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to limit sold product quantity during 1 day for 1 user?](/forum/35-orders-management/887268-how-to-limit-sold-product-quantity-during-1-day-for-1-user#254195 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6  Hello, I want to sell up to 5 pcs of Each product daily. Not more, to avoid wholesalers during our sales. We will have 2000+ product, so adding filters manually for each product in Hikashop -&gt; Products -&gt; Limit is not a good idea. Nor we can't limit category. Selling multiple products up to 5 pcs is good for us. As I understood, the limit in product listing is for always, but we need to reset it next day after purchase. How can I manage that?")*

Hi,

A global "per day per user per product" option doesn't exist.
You can have a restriction per order per product with the "Quantity per order" setting of the products, and you can have a "per day per per user per product" for one product with limits. But indeed, that means creating thousands of limits.
So either you use the CSV export/import function of your PHPMyAdmin on the hikashop_limit table in order to rapidely generate all the limits in excel by duplicating the entries, or you need to write a small plugin implementing the "onBeforeOrderCreate" trigger in order to add your check with some PHP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NzI2OC1ob3ctdG8tbGltaXQtc29sZC1wcm9kdWN0LXF1YW50aXR5LWR1cmluZy0xLWRheS1mb3ItMS11c2VyP3RtcGw9bWFya2Rvd24=) 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.037 seconds

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