Skip to main content

Buy from more than one category for having a rebat

More
11 years 8 months ago #185457 by clucking
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.36

Hi,

I would like to know if this is possible in Hikashop Business Edition - I would like to give new customers a coupon - rebate - fixed amount - but they must buy at least one product from two different categories. Let's say, if they buy at least one shirt and one pair of trousers they will get a rebate using a coupon code.

Thanks,

Claus.

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

More
11 years 8 months ago #185496 by Xavier
Hi,

This is not possible by default in HikaShop, you will have to create a plugin for that.

First create a common coupon, then create a plugin based on the function "onBeforeCouponCheck(&$coupon,&$total,&$zones,&$products,&$display_error,&$error_message,&$do)", and in that function do some check on the products present in the cart and their categories.

If conditions are ok, so let $do as TRUE, else set it as FALSE and this way the coupon will not be loaded.

It require PHP knowledges.
The following user(s) said Thank You: clucking

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

Time to create page: 0.188 seconds
Powered by Kunena Forum