Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3560322
do not apply a coupon to a simple product in a bundle
Open

Comments

  • Cristina started the conversation
    Hello, I created a discount coupon, which I do not want to apply to some products. But it doesn't work to exclude them in a bundle. I tried by product, by category and with a plugin to exclude products from coupons... but doesnt work, if the product are in a bundle, the discount apply  to every products. The discount applies to the total of the bundle. If I buy the excluded product separately, it works,  does exclude it.

    Attached files:  support bundle coupon.pdf

  •  767
    Janilyn replied

    Hi Cristina,

    Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.

    Did you create coupons from the WooCommerce >> Coupons section or did you use any third-party plugin to generate the codes for your store? If you use the WooCommerce coupons, then it's supposed to work on bundles. 

    To prevent the coupon application on products added to smart bundle as subproducts, you can go to WPClever >> Product Bundles >> Coupon restrictions and choose an option that you want to exclude bundles or subproducts or both from coupon application.

    You can read this guide for further instructions: https://doc.wpclever.net/woosb/plugin-settings/coupon-restriction-2/

    Best regards.

    Janilyn T. - WPClever Support Agent

  • Cristina replied

    I create the coupons in woocommerce>>marketing>>coupons

    Your options in bundle "restrictions of coupons arent useful, because when I activate bundle the coupon discount 0, if I select grouped products, the coupon discount 0.

    I want the coupon to apply to authorized categories and NOT to apply to unauthorized categories. I sell office products and books, I want it to apply the coupon to the office supplies category, but not apply to the books category. The coupon restricts it, and works for products outside the bundle, but for products in the bundle it does not respect it and applies it to all products.


  •  767
    Janilyn replied

    Hi Cristina,

    With the extra details you provided, I can confirm that this issue is due to the coupon settings required by WooCommerce, not our plugin. Since that doesn't allow both allowed and unallowed items to be included in the coupon application. 

    Now that both products are added to the same bundle as subproducts, it's conflicting with the coupon rules you have created. With smart bundles, by nature, it's a products-in-products case so technically, the rules won't applied to just part of the bundle as you prefer. That is also the reason why it is just working when you add separate products to the cart instead of adding them as a whole item or package to the cart.

    I will create an example for your references: My bundle has 2 items, one is under the Clothing category (allowed) and the other

     one is under the Tee category (excluded from coupon).

    2033476008.png
    9794287145.png

    Coupons: 

    5usd - fixed cart discount - reduce $5 on cart total

    3154558089.png


    30off - percentage discount - 30% off the cart total

    7231029570.png


    Now, when I added the bundle to the cart and try to apply the above coupons, you can see the alerts for excluded items inside bundle:

    1566656631.png
    7747599779.png

    When you try to use a coupon that restricts part of bundles from the discount, it makes the whole bundle invalid for coupon application. This is because when you make a smart bundle, the main product is now the bundle, not the subproducts inside. It is a thing that WooCommerce doesn't allow, not that our plugin is having an issue with it.

    You can't expect the coupons or bundles to automatically exclude the items not applicable when they are binded as subitems. That is why it works for common product types, but not for special product type such as smart bundle, smart grouped and smart composite. 

    Best regards.

    Janilyn T. - WPClever Support Agent

  • Cristina replied

    Hello. Thanks for your answer. However, I think IT IS a problem of the plugin, since is the plugin that must adapt to Woocomerce and not the other way around. In the plugin, in the coupon exclusion option, there should be the option to exclude products or categories excluded in the coupon of woocommerce. I hope some day you can develop it. The heart of my business are bundles and I wanted to offer a discount to my customers, but only for some of the products in the bundle...
    On the other hand, in my case it is not like in your example. When the coupon is applied, it applies to the entire bundle and does not recognize the restrictions. Not like in your case, where the discount does not apply.

  •  767
    Janilyn replied

    Hi Cristina,

    1. There are some settings in the core of WooCommerce that external plugins from other authors like us can't solve. Or maybe our developers are not capable of solving those properly for now. Hopefully, we can find a solution for that soon.

    2. How the results work on our test site and live demo should be the most precise since we only install WooCommerce, our WPCstore theme and WPC plugins to test. So in your case, maybe there is something else interfering with our plugin's functionality as well.

    However, since smart bundles/composite and grouped products are special product types, we are not optimistic about making it work as you prefered since these products themselves carry discount and special pricing so the subproducts must be binded and can't be treated as purchasing normal products altogether.

    Best regards.

    Janilyn T. - WPClever Support Agent