• Resolved bizdev

    (@bizboomdev)


    Hello,

    We have pricing tiers set up with B2B King. For example, Gold Silver, Bronze. Each tier has different pricing for a single product.

    I have created a BOGO (buy one get one) coupon via “Marketing > Coupons” and combined this with a “Woo Discount” discount rule.

    1. The coupon is set to discount a percentage – the percentage is set to 0%. The coupon is restricted to B2BK members Gold, Silver, Bronze.

    2. The Woo Discount Rule is a “Buy X Get X” and the coupon must be applied as part of my Discount Rule conditions.

    This works as expected to non-b2bk members and fails for b2bk members.

    Issue:

    When a Gold level customer enters the bogo coupon, they see the free item, however the price is not set to $0. Instead, the B2BK price is overwriting.

    Non-B2B member price in screenshot here: https://drive.google.com/file/d/1opuXogWkrMbHKWxMVw2HS2WFjooj0DG_/view?usp=drive_link

    B2B member price and override: https://drive.google.com/file/d/1ln6lvnFyXqZNV1ERoZkhNtRaxLUzAaYF/view?usp=drive_link

    Expected behavior:

    When a B2BK customer enters a coupon code, the coupon should be respected.

    I have tried disabling the setting for “Disable Coupon Value Features (may help fix conflicts..)”

    • This topic was modified 3 months, 1 week ago by bizdev.
    • This topic was modified 3 months, 1 week ago by bizdev.
    • This topic was modified 3 months, 1 week ago by bizdev.
Viewing 1 replies (of 1 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there,

    Glad to assist,

    I believe what needs to happen here is that we have to do an integration, to basically make B2BKing’s pricing algorithms ignore products that are set to $0 by those coupons. It depends on which specific plugin is responsible for those BOGO coupons. Usually, such free products would have an internal cart item key such as ‘free_product’, or ‘bogo_free’, ‘bogo_item_of’, etc. that we need to search for.

    I have two suggestions to approach it:

    (A) If you are comfortable with debugging the cart, it would be helpful if you can give us this information directly. Basically we need to go through the cart items and find a key such as ‘free_product’, that is only added to these free items. We would then use code such as:

    foreach( WC()->cart->get_cart() as $cart_item ) {

    if (isset($cart_item['free_product'])){ // product is free, ignore B2BKing pricing
    continue;
    }

    }

    (B) If you do not have that info, please let me know which plugin is responsible for those coupons / for setting the price to $0 on those products. In that case it would help if you can share relevant screenshots of your coupon configuration, so we can try and reproduce that.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.