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

#   Access level on Coupons

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#23827](#23827) by [hko](/forum/user/3515-hko "View hko's Profile")  *[Access level on Coupons](/forum/3-bug-report/23827-access-level-on-coupons#23827 "(HS 1.5.3 Business, J! 1.7) Tried to use the access levels in coupons and &quot;auto load in cart if possible&quot;.  Setup coupon to be active from a certain min. order value and access level to &quot;all&quot;. Coupon is applied. =&gt; OK  Assigned a custom level and with an user in that level, no coupon.  even worse, selecting all tickboxes in the coupon's access level (so basically simulating the &quot;all&quot; setting) and no coupon.")* was created by *[hko](/forum/user/3515-hko "View hko's Profile")*

(HS 1.5.3 Business, J! 1.7)
Tried to use the access levels in coupons and "auto load in cart if possible".

Setup coupon to be active from a certain min. order value and access level to "all". Coupon is applied. =&gt; OK

Assigned a custom level and with an user in that level, no coupon.

even worse, selecting all tickboxes in the coupon's access level (so basically simulating the "all" setting) and no coupon.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzgyNy1hY2Nlc3MtbGV2ZWwtb24tY291cG9ucz90bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14304
-
-

15 years 2 months ago [\#23828](#23828) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access level on Coupons](/forum/3-bug-report/23827-access-level-on-coupons#23828 "(HS 1.5.3 Business, J! 1.7) Tried to use the access levels in coupons and &quot;auto load in cart if possible&quot;.  Setup coupon to be active from a certain min. order value and access level to &quot;all&quot;. Coupon is applied. =&gt; OK  Assigned a custom level and with an user in that level, no coupon.  even worse, selecting all tickboxes in the coupon's access level (so basically simulating the &quot;all&quot; setting) and no coupon.")*

Hi,

There is indeed a problem on j1.7 for coupon access levels. Could you try to change the code:
if($coupon-&gt;discount_access != 'all' AND ($coupon-&gt;discount_access == 'none' OR empty($my-&gt;gid) OR empty($my-&gt;id) OR !hikashop_isAllowed($coupon-&gt;discount_access))){
by:
if($coupon-&gt;discount_access != 'all' AND ($coupon-&gt;discount_access == 'none' OR empty($my-&gt;id) OR !hikashop_isAllowed($coupon-&gt;discount_access))){

in the file administrator/components/com_hikashop/classes/discount.php and try again ? That solves the problem on our end.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#23837](#23837) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: Access level on Coupons](/forum/3-bug-report/23827-access-level-on-coupons#23837 "(HS 1.5.3 Business, J! 1.7) Tried to use the access levels in coupons and &quot;auto load in cart if possible&quot;.  Setup coupon to be active from a certain min. order value and access level to &quot;all&quot;. Coupon is applied. =&gt; OK  Assigned a custom level and with an user in that level, no coupon.  even worse, selecting all tickboxes in the coupon's access level (so basically simulating the &quot;all&quot; setting) and no coupon.")*

Hi Nicolas,

I can indeed confirm this solves the issue! Great!

thx

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#23846](#23846) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: Access level on Coupons](/forum/3-bug-report/23827-access-level-on-coupons#23846 "(HS 1.5.3 Business, J! 1.7) Tried to use the access levels in coupons and &quot;auto load in cart if possible&quot;.  Setup coupon to be active from a certain min. order value and access level to &quot;all&quot;. Coupon is applied. =&gt; OK  Assigned a custom level and with an user in that level, no coupon.  even worse, selecting all tickboxes in the coupon's access level (so basically simulating the &quot;all&quot; setting) and no coupon.")*

UPDATE: The access level is working perfectly but now comes to another related issue I guess but it might be a "works as designed".

Create a coupon with a percentage discount.
Assign minimum order value.
Limit it to a specific Category.
Autoload to yes.

The assignment of the coupon seems to work ok, but the percentage discount seems to be taken into account over the total cart, not only over the specific Category...

So as a result: if somebody is entitled to have the coupon based on his amount and category, the whole cart will benefit from the percentage discount.

is this intentionally or not?

thx again!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzgyNy1hY2Nlc3MtbGV2ZWwtb24tY291cG9ucz90bXBsPW1hcmtkb3du) 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: 86556
- Thank you received: 14304
-
-

15 years 2 months ago [\#23849](#23849) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access level on Coupons](/forum/3-bug-report/23827-access-level-on-coupons#23849 "(HS 1.5.3 Business, J! 1.7) Tried to use the access levels in coupons and &quot;auto load in cart if possible&quot;.  Setup coupon to be active from a certain min. order value and access level to &quot;all&quot;. Coupon is applied. =&gt; OK  Assigned a custom level and with an user in that level, no coupon.  even worse, selecting all tickboxes in the coupon's access level (so basically simulating the &quot;all&quot; setting) and no coupon.")*

Yes, that's normal. Coupons, unlike discounts, are applied to the whole cart.

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

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