Okay
  Public Ticket #3381649
remove checkout functionality for b2b users
Closed

Comments

  •  1
    Hamza started the conversation

    Hello! 

    I just purchased your plugin and its awesome.

    I want to remove the checkout functionality for b2b customers. like b2b customers can see the prices but cannot place an order because we didn't implement any payment gateway yet. They can only add products to the cart and get the quote option enabled as you have for b2c guest users.


  •  2,285
    WebWizards replied

    Hi Hamza,

    Thank you for purchasing our plugin!


    To achieve this you can go to B2BKing -> Dynamic Rules and create a 'Replace Cart with Quote' rule for your registered (or b2b only) users, such as this one:


    7272581744.png


    This will apply the same quote feature for guests to your logged in users.


    I'd also like to mention that this feature normally hides prices while in quote mode. However you can show prices by going to B2BKing -> Settings -> Other and disabling "Hide prices in quote-only mode":

    https://prnt.sc/W-Z7AsPXlTmr


    Let me know if I can help with anything, or if you have any questions,

    Kind regards,

    Stefan


  •  1
    Hamza replied

    Hello, 

    I want to change my quote/conversations emails recipient (email sent to) , but I cant find any option 


  •  2,285
    WebWizards replied

    Hello,


    To change the recipient for those emails, it's needed to add a PHP code snippet to the site:

    add_filter('b2bking_recipient_new_message', function($recipient, $conversationid){
        return '[email protected]';
    }, 10, 2);
    add_filter('b2bking_recipient_new_message_quote', function($recipient, $conversationid){
        return '[email protected]';
    }, 10, 2);

    You can replace [email protected] with any email address.


    A PHP snippet 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/


    Let me know if I can help with anything, or if you have any questions,

    Kind regards,

    Stefan