two coupons - only one can be active for a cart

  • Posts: 32
  • Thank you received: 0
9 years 7 months ago #199203

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.18
-- PHP version -- : 5

Hi,

Can i detect if any other coupons have been activated in Hikashop (for the current cart/order) because i need to prevent one coupon from being used if another coupon has already been activated?

I'm going to write a custom plugin (calling on the coupon API in the developer documentation - perhaps in onBeforeCouponLoad() or onBeforeCouponCheck() or another plugin function perhaps?) for this purpose...

Thanks in advance!

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #199218

Hi,

Could you provide more details on what you want to do exactly ?
Why do you want to do such check ?
By default, HikaShop already forbid the customer from entering a second coupon once a coupon has been entered.
So I don't see why you're trying to do prevent something which should already not happen and thus I would first need to know more about the circumstances before being able to give a useful answer.

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

Time to create page: 0.053 seconds
Powered by Kunena Forum