• Resolved drachires

    (@drachires)


    When I set the B2B price with B2BKing and I want to include price in Meta Title with %%wc_single_price%% … its going to show the B2B price and not regular price

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    we only support WooCommerce plugin not B2B King so we don’t really know how they handle this.

    You can try this dynamic variable instead to see if it’s better:

    %%wc_single_price_exc_tax%%

    Thread Starter drachires

    (@drachires)

    I need including tax, not excluding tax … so it will not help … I know I can be seeking help also from their side, but they can also say why you are taking price from their B2B price and not from basic price, that its your fault … ??

    WebWizards

    (@webwizardsdev)

    Hi there,

    We are the B2BKing developers. I’m not very familiar with how this title works. Is it showing the B2B price in the title to B2B users only, or to everyone?

    If everyone, you might be able to solve it by setting your admin user as B2C.

    If it’s different for every user, then you’d need to get the regular price, instead of $product->get_price(), it would be needed to use something like get_post_meta($product_id,’_regular_price’, true) in the code – I’m not sure if that is possible or not.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi @webwizardsdev!

    To get the regular price, you must use this:

    if (isset($product) && method_exists($product, 'get_regular_price')) {
        $regular_price = $product->get_regular_price();
    }

    This should do the trick ??

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We are now closing this ticket due to topic inactivity.

    Thank you for your understanding.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘B2Bking incompatibility in Title’ is closed to new replies.