Comments 3Susan Heideman started the conversationFebruary 7, 2024 at 7:46pmI'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,217WebWizards repliedFebruary 7, 2024 at 8:01pmHi Susan,If no rules are working, can you please check that the switches here in B2BKing -> Settings -> Other -> Components were not accidentally enabled?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 3Susan Heideman repliedFebruary 7, 2024 at 8:59pmOk, that worked. But we do NOT want the sale badge anywhere on the site. How can I get rid of this? 1 Like 2,217WebWizards repliedFebruary 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' ); ORIf 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://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/ 3Susan Heideman repliedFebruary 7, 2024 at 9:05pmYou guys saved me. Thank you!!!1 Like 2,217WebWizards repliedFebruary 7, 2024 at 9:07pmMy pleasure : ) If there's anything else I can help with, please let me know. Also, if you have a minute, I would really appreciate it if you considered leaving a quick rating for the plugin - it's a big help to us. 3Susan Heideman repliedFebruary 7, 2024 at 9:45pmI added the code but I'm still getting this: Attached files: Sale Badge still there.PNG 3Susan Heideman repliedFebruary 8, 2024 at 3:35pmActually, I just put the code in admin>code snippets instead of admin>divi>themecustomizer. It's good now1 Like 2,217WebWizards repliedFebruary 8, 2024 at 5:42pmGlad to hear that worked now,If we can help with anything, please let us know. Sign in to reply ...
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?
Hi Susan,
If no rules are working, can you please check that the switches here in B2BKing -> Settings -> Other -> Components were not accidentally enabled?
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
Ok, that worked. But we do NOT want the sale badge anywhere on the site. How can I get rid of this?
(1) To always remove the sale badge (on all products), you can add this code snippet to your site:
OR
If you want to remove the sale badge only on B2BKing dynamic rule products, you can add this code snippet instead:
(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:
All these snippets 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/
You guys saved me. Thank you!!!
My pleasure : ) If there's anything else I can help with, please let me know.
Also, if you have a minute, I would really appreciate it if you considered leaving a quick rating for the plugin - it's a big help to us.
I added the code but I'm still getting this:
Attached files: Sale Badge still there.PNG
Actually, I just put the code in admin>code snippets instead of admin>divi>themecustomizer. It's good now
Glad to hear that worked now,
If we can help with anything, please let us know.