Public Ticket #3579795

HELP!!!!!

Closed
Comments
9 Tickets 3
Susan Heideman started the conversation 3 years ago on February 7, 2024 at 7:46pm

I'm trying to finish testing this plugin before Friday, and I'm freaking out because NO RULES are being applied.

I create an 8% off user group. 

The dummy account for this user is:

(user) [email protected]

(pw) Jack1275!

Sku 0946 has a regular price of 133.41.  The sale price that should be showing then for 0946 if I'm logged in as [email protected] should be 122.74.  Why is the rule not working?

2,762
KingsPlugins replied 3 years ago on February 7, 2024 at 8:01pm

Hi Susan,

If no rules are working, can you please check that the switches here in B2BKing -> Settings -> Other -> Components were not accidentally enabled?

2300715292.png

Please note these switches should look like in the above image (disabled).


Other than that, I'm not sure what the issue could be but I'd be glad to check, I'm sure there must be a simple explanation.


For that, could you share an admin login to the site, so I can look into this?


Kind regards,

Stefan

2,762
KingsPlugins replied 3 years ago on February 7, 2024 at 9:02pm

(1) To always remove the sale badge (on all products), you can add this code snippet to your site:

add_filter( 'woocommerce_sale_flash', '__return_false' );

OR

If you want to remove the sale badge only on B2BKing dynamic rule products, you can add this code snippet instead:

add_filter('b2bking_dynamic_recalculate_sale_price_badge', '__return_false');

(2) 

If you want to also remove the crossed out price on B2BKing dynamic rule products, you can remove it by adding this code snippet:

add_filter('b2bking_dynamic_recalculate_sale_price_display', function($price_html, $product, $sale_price){
    return wc_price($sale_price);
}, 10, 3);

All these snippets can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Sign In