- Posts: 32
- Thank you received: 0
two coupons - only one can be active for a cart
- diesel1984
-
Topic Author
- Offline
Less
More
11 years 5 months ago #199203
by diesel1984
two coupons - only one can be active for a cart was created by diesel1984
-- 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!
-- 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.
11 years 5 months ago #199218
by nicolas
Replied by nicolas on topic two coupons - only one can be active for a cart
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.
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.148 seconds