Access level on Coupons

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23827

(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. => 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 or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 3 months ago #23828

Hi,

There is indeed a problem on j1.7 for coupon access levels. Could you try to change the code:
if($coupon->discount_access != 'all' AND ($coupon->discount_access == 'none' OR empty($my->gid) OR empty($my->id) OR !hikashop_isAllowed($coupon->discount_access))){
by:
if($coupon->discount_access != 'all' AND ($coupon->discount_access == 'none' OR empty($my->id) OR !hikashop_isAllowed($coupon->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 or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23837

Hi Nicolas,

I can indeed confirm this solves the issue! Great!

thx

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23846

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 or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 3 months ago #23849

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum