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

#   Discount coupons for product combinations

##

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

Less More

- Posts: 75
- Thank you received: 1
-
-

11 years 10 months ago [\#185483](#185483) by [mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")  *[Discount coupons for product combinations](/forum/27-checkout/874054-discount-coupons-for-product-combinations#185483 "-- 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")* was created by *[mterry2](/forum/user/33647-mterry2 "View mterry2's Profile")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDA1NC1kaXNjb3VudC1jb3Vwb25zLWZvci1wcm9kdWN0LWNvbWJpbmF0aW9ucz90bXBsPW1hcmtkb3du) 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 10 months ago [\#185514](#185514) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Discount coupons for product combinations](/forum/27-checkout/874054-discount-coupons-for-product-combinations#185514 "-- 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")*

Hi,

This is not possible by default, but you can create a plugin for that.
A plugin based on the function "onBeforeCouponCheck(&amp;$coupon,&amp;$total,&amp;$zones,&amp;$products,&amp;$display_error,&amp;$error_message,&amp;$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](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#coupon)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDA1NC1kaXNjb3VudC1jb3Vwb25zLWZvci1wcm9kdWN0LWNvbWJpbmF0aW9ucz90bXBsPW1hcmtkb3du) 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.040 seconds

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