Okay
  Public Ticket #2877373
Visibility
Closed

Comments

  • Abby started the conversation

    Hello, 

    1. Here is the issue: Logged out and B2C customers are able to add items to their cart, and then if they login to their B2B account, those items remain in their cart even when they are not available to that B2B group. My client does not want to launch our B2B portion of the website because she is afraid that B2B customers will find that loophole and be able to add items they don't have access to, to their cart and checkout. 


    2. Second issue, is there a way to create a dynamic rule for custom payment options? My client doesn't want her wholesale customers accidentally using the quick checkout instead of getting to the B2B payment method page where we have specific instructions. 


    Thanks so much, 

    Abby 

  •  2,218
    WebWizards replied

    Hi Abby,

    Thank you for purchasing our plugin.


    1. 

    We will look at updating the plugin to correct this loophole, but until we're able to do that, there is a solution you can apply right now directly:

    Please go to B2BKing -> Dynamic Rules -> and create a "Hidden Price" rule for all those products/categories, for B2B users. Hidden price rules set the product to be "unpurchasable". The effect will be that if there are any products in the cart under that rule, they will be immediately removed.


    2.

    How is Quick Checkout added to the site? I mean, it's not a default WooCommerce function is it? Are you using some sort of plugin?

    In the page where you have Quick Checkout is it added with a Shortcode?


    If so, one solution would be to use the Content Visibility Shortcode of our plugin and put that shortcode inside our plugin's shortcode.

    https://woocommerce-b2b-plugin.com/docs/shortcode-to-restrict-content-to-b2b-b2c-user-groups-specific-users/

    You could use that to hide quick checkout for non-b2b users + also display a text like "please go to the B2B checkout" that shows only to b2b users.


    Kind regards,

    Stefan