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

#   Quote per user

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 7 months ago [\#234298](#234298) by [ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")  *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234298 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")* was created by *[ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")*

Hi,

I have created a coupon with attached configuration.
i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...

work only if the value is = 1

how i can solve this issue?

[ ![Schermata&#95;2016-03-25&#95;alle&#95;17&#95;48&#95;39.png](/forum/attachment/30301) ](/forum/attachment/30301 "...e&#95;17&#95;48&#95;39.png")

- [ ![Schermata&#95;2016-03-25&#95;alle&#95;17&#95;48&#95;39.png](/forum/attachment/30301) ](/forum/attachment/30301 "...e&#95;17&#95;48&#95;39.png") [ ](/forum/attachment/30301?download=1 "...e&#95;17&#95;48&#95;39.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84ODMzNjMtcXVvdGUtcGVyLXVzZXI/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 7 months ago -  10 years 7 months ago [\#234313](#234313) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234313 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

Hi,

What do you mean by "it doesn't work" ?
You can't use the coupon code at all ?
Or you can use the coupon code more than twice ?
Also, which version of HikaShop are you using ?

Last edit: 10 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 6 months ago [\#234574](#234574) by [ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")  Replied by *[ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234574 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

Hi,
the coupon come applied more than twice for each user
my version is HikaShop Business 2.6.1

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 6 months ago [\#234712](#234712) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234712 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

Hello,

It should actually works with the way you have configured your coupon, but can you test it without any value through the "Quota" option ?

Thank you.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 6 months ago [\#234730](#234730) by [ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")  Replied by *[ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234730 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

HI,
doesn't work also with quota value = 0
my test account can order more than twice with discount...

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 6 months ago [\#234777](#234777) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234777 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

Hello,

We just added a fix regarding that issue, the solution will be to edit the "administrator\components\com_hikashop\classes\discount.php" file and change that line : Code:

$query = 'SELECT COUNT(order_id) AS already_used FROM '.hikashop_table('order').' WHERE order_user_id='.(int)$user_id.' AND order_status NOT IN ('.$cancelled_order_status.') AND order_discount_code='.$db-&gt;Quote($coupon-&gt;discount_code).' GROUP BY order_id';

By : Code:

$query = 'SELECT COUNT(order_id) AS already_used FROM '.hikashop_table('order').' WHERE order_user_id='.(int)$user_id.' AND order_status NOT IN ('.$cancelled_order_status.') AND order_discount_code='.$db-&gt;Quote($coupon-&gt;discount_code);

Thank you for your feedback !

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 6 months ago [\#234836](#234836) by [ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")  Replied by *[ABCdistribution](/forum/user/37818-abcdistribution "View ABCdistribution's Profile")* on topic *[Quote per user](/forum/46-discount-coupon/883363-quote-per-user#234836 "Hi,  I have created a coupon with attached configuration. i need that discount is usable only two times (for single user) from all users of the selected group, but does not work...  work only if the value is = 1  how i can solve this issue?")*

Now work perfectly!

Many thanks for your quick support!

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

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

[](#top)
