- Posts: 75
- Thank you received: 1
Discount coupons for product combinations
11 years 10 months ago #185483
by mterry2
Discount coupons for product combinations was created by mterry2
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.7
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome 36.0.1985
Hi. I would like to create a coupon that generates a discount when a particular product combination is ordered. Example - buy a matching cup and saucer and receive a 10% discount. Is this possible?
I thought about providing a 10% off coupon code, and checking it's used correctly, but that creates a problem if there are other products in the cart.
Can you please help? Thanks
-- Joomla version -- : 3.3.7
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome 36.0.1985
Hi. I would like to create a coupon that generates a discount when a particular product combination is ordered. Example - buy a matching cup and saucer and receive a 10% discount. Is this possible?
I thought about providing a 10% off coupon code, and checking it's used correctly, but that creates a problem if there are other products in the cart.
Can you please help? Thanks
Please Log in or Create an account to join the conversation.
11 years 10 months ago #185514
by Xavier
Replied by Xavier on topic Discount coupons for product combinations
Hi,
This is not possible by default, but you can create a plugin for that.
A plugin based on the function "onBeforeCouponCheck(&$coupon,&$total,&$zones,&$products,&$display_error,&$error_message,&$do)".
Check the products present in the cart, and based on the informations set $do to TRUE if products are in the cart or FALSE to not apply the coupon.
www.hikashop.com/support/support/documen...entation.html#coupon
This is not possible by default, but you can create a plugin for that.
A plugin based on the function "onBeforeCouponCheck(&$coupon,&$total,&$zones,&$products,&$display_error,&$error_message,&$do)".
Check the products present in the cart, and based on the informations set $do to TRUE if products are in the cart or FALSE to not apply the coupon.
www.hikashop.com/support/support/documen...entation.html#coupon
Please Log in or Create an account to join the conversation.
Time to create page: 0.042 seconds