[Skip to main content](#vessel-content)

#   Buy from more than one category for having a rebat

##

- **[clucking](/forum/user/29462-clucking "View clucking's Profile")**
- [![clucking's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29462-clucking "View clucking's Profile") Topic Author
- [ Offline](/forum/user/29462-clucking)

Less More

- Posts: 28
- Thank you received: 0
-
-

11 years 9 months ago [\#185457](#185457) by [clucking](/forum/user/29462-clucking "View clucking's Profile")  *[Buy from more than one category for having a rebat](/forum/46-discount-coupon/874048-buy-from-more-than-one-category-for-having-a-rebat#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.")* was created by *[clucking](/forum/user/29462-clucking "View clucking's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzQwNDgtYnV5LWZyb20tbW9yZS10aGFuLW9uZS1jYXRlZ29yeS1mb3ItaGF2aW5nLWEtcmViYXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#185496](#185496) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Buy from more than one category for having a rebat](/forum/46-discount-coupon/874048-buy-from-more-than-one-category-for-having-a-rebat#185496 "-- 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.")*

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(&amp;$coupon,&amp;$total,&amp;$zones,&amp;$products,&amp;$display_error,&amp;$error_message,&amp;$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](/forum/user/29462-clucking "View clucking's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzQwNDgtYnV5LWZyb20tbW9yZS10aGFuLW9uZS1jYXRlZ29yeS1mb3ItaGF2aW5nLWEtcmViYXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.151 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
