Okay
  Public Ticket #3688916
Prevent subaccounts inheriting pricing
Closed

Comments

  •  5
    Gilbert started the conversation

    Hi, I found a public ticket of someone having the same issue, but I couldn't find how it was solved.

    It's about the fact that I want to prevent subaccounts from inheriting parent account pricing. Every time I create a subaccount, it ignores the set dynamic rule and adjusts to the dynamic rule that was set to the main account.

    And I would like my subaccounts each to have a different discount on its own.

    Please help me how to accomplish this because my client really needs it.

    Thanks.

    Kind regards,

    Gilbert

  •  2,114
    WebWizards replied

    Hi Gilbert,

    One way to achieve that would be to add the following PHP code snippet to your site:

    add_action('init', function(){
        update_option('b2bking_enable_parent_account_equivalence', 'no');
    });
    

    This snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/

    It should then work for subaccounts to retain their own rules and discounts. 

    Please note though that other functionalities / rules / payment methods are also affected, and subaccounts will generally no longer inherit from parent accounts in various areas.


    Kind regards,

    Stefan


  •  5
    Gilbert replied

    Hi Stefan,

    Thank you so much for your quick reply. 

    The code works like a charm. Just what I was looking for.


    Kind regards,

    Gilbert