The following setup enables you to enable quote request checkout only to selected roles and allow others to buy and checkout normally.
If you need help setting it up, we can help.
Set the default setting to RFQ.
In the roles, leave 4a blank and in 4b add the role(s) that can only request a quote. You have to create the role first.
At the very bottom of the page, enter a label for people who can purchase(everybody else). This
Is the label for the cart button .
In the labels section use “Add to Quote”
And finally add this to the bottom of your functions.php
if(function_exists('gpls_woo_rfq_purchase_only')) { add_action('init', 'gpls_woo_rfq_check_role', 1); function gpls_woo_rfq_check_role() { $in_role = false; if (is_user_logged_in()) { $user = wp_get_current_user(); $user_roles = $user->roles; $eligible_roles = get_option('settings_gpls_woo_rfq_plus_visible_price_roles', 'no'); $option_value_list = explode(',', $eligible_roles); foreach ($user_roles as $cat_id) { if (in_array(trim($cat_id), $option_value_list)) { $in_role = true; } } } if($in_role == false){ gpls_woo_rfq_purchase_only(); // user can see prices and purchase normally } } }