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

#   can a coupon be limited for only 1 time per unique product?

##

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2012-12-17-2.jpg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

9 months 4 weeks ago [\#369915](#369915) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  *[can a coupon be limited for only 1 time per unique product?](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product#369915 "-- HikaShop version -- : 6.2.0 -- Joomla version -- : 5.4.1 -- PHP version -- : 8.4.15  I found this extension : and was trying to figure out if the following could be done with it:  Customers can buy products as many as they like but only on the first unique product they get the discount. For example product 1, if they buy 10 only 1 product gets the discount. The same for more products.  For 1 product we can do this manually but with a lot of products this is not something you want to do manually.  Other tips / solutions are more than welcome :)")* was created by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")*

-- HikaShop version -- : 6.2.0
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.4.15

I found this extension : [ ](https://www.hikashop.com/marketplace/product/292-coupon-conditions.html)[ www.hikashop.com/marketplace/product/292-coupon-conditions.html](https://www.hikashop.com/marketplace/product/292-coupon-conditions.html) and was trying to figure out if the following could be done with it:

Customers can buy products as many as they like but only on the first unique product they get the discount.
For example product 1, if they buy 10 only 1 product gets the discount.
The same for more products.

For 1 product we can do this manually but with a lot of products this is not something you want to do manually.

Other tips / solutions are more than welcome ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MTAwMTMtY2FuLWEtY291cG9uLWJlLWxpbWl0ZWQtZm9yLW9ubHktMS10aW1lLXBlci11bmlxdWUtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

9 months 4 weeks ago [\#369918](#369918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[can a coupon be limited for only 1 time per unique product?](/forum/46-discount-coupon/910013-can-a-coupon-be-limited-for-only-1-time-per-unique-product#369918 "-- HikaShop version -- : 6.2.0 -- Joomla version -- : 5.4.1 -- PHP version -- : 8.4.15  I found this extension : and was trying to figure out if the following could be done with it:  Customers can buy products as many as they like but only on the first unique product they get the discount. For example product 1, if they buy 10 only 1 product gets the discount. The same for more products.  For 1 product we can do this manually but with a lot of products this is not something you want to do manually.  Other tips / solutions are more than welcome :)")*

Hi,

To restrict the number of uses for a coupon, only the "quota" and "quota per user" settings can be used.

Being able to restrict the number of users of a coupon based on the purchased quantity of individual products means tracking that information. This is not done at the moment. There is no table in the database which links the users, the products and the coupons / discounts to know how many time a coupon / discount was used by a user and for which products.
Supposing that this table existed ( it could be done in a custom plugin), it would then be possible to develop a custom plugin to restrict the use of a coupon based on past purchases and what is already in the cart.

The coupon conditions plugin won't help with that extra table, and even if that extra table was properly filled, it is not meant to be able to tap into other tables than the standard ones in HikaShop ( cart, product, user, address, etc). So this is a dead end.

A simpler solution would be to create one discount per product with a quota per user of 1 and a fixed flat value corresponding to the price of the product.
That way, you can have different products discounted in the same cart, and only the value of one product is discounted for each product.
However, that indeed means having to setup one discount per produc. And if you want the customer to enter a code to get the discount, it means also using the multicoupon plugin, and having to manage one code per product, which is not practical.

Here, I think a custom plugin is the proper way to go.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi85MTAwMTMtY2FuLWEtY291cG9uLWJlLWxpbWl0ZWQtZm9yLW9ubHktMS10aW1lLXBlci11bmlxdWUtcHJvZHVjdD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.050 seconds

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