Buy from more than one category for having a rebat

  • Posts: 28
  • Thank you received: 0
9 years 10 months ago #185457

-- 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.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #185496

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.070 seconds
Powered by Kunena Forum