Public Ticket #3381649

remove checkout functionality for b2b users

Closed
Comments
4 Tickets 1
Hamza started the conversation 3 years ago on May 30, 2023 at 11:11am

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,762
KingsPlugins replied 3 years ago on May 30, 2023 at 9:56pm

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


2,762
KingsPlugins replied 3 years ago on June 6, 2023 at 3:09am

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://b2bkingplugin.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

Sign In