Public Ticket #3688916

Prevent subaccounts inheriting pricing

Closed
Comments
5 Tickets 5
Gilbert started the conversation 2 years ago on July 18, 2024 at 8:24pm

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

1
2,762
KingsPlugins replied 2 years ago on July 19, 2024 at 9:58am

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://b2bkingplugin.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 Tickets 5
Gilbert replied 2 years ago on July 22, 2024 at 12:37pm

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

1

Sign In