Okay
  Public Ticket #3579795
HELP!!!!!
Closed

Comments

  •  3
    Susan Heideman started the conversation

    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,217
    WebWizards replied

    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

  •  3
    Susan Heideman replied

    Ok, that worked. But we do NOT want the sale badge anywhere on the site. How can I get rid of this? 

  •  2,217
    WebWizards replied

    (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://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


  •  3
    Susan Heideman replied

    You guys saved me. Thank you!!!

  •  2,217
    WebWizards replied

    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.

  •  3
    Susan Heideman replied

    I added the code but I'm still getting this: 

    4464479402.png

    Attached files:  Sale Badge still there.PNG

  •  3
    Susan Heideman replied

    Actually, I just put the code in admin>code snippets instead of admin>divi>themecustomizer.  It's good now

  •  2,217
    WebWizards replied

    Glad to hear that worked now,

    If we can help with anything, please let us know.