We have been implementing the B2B King plugin and have been given a range of feedback by clients. It would be good to know if these are possible, and if not, if they could be implemented as new features/updates.
- When you log in to the Dashboard page is it possible to show something more informational/vibrant? E.g have a dashboard, were the B2B client can visually see a graph of items ordered when.
- Is it possible to hide the Offers tab when there are no offers?
- Is it possible to rename the Bulk Order tab, e.g. to Quick Order?
- Is it possible for products where prices aren’t shown, change the description of "Price is unavailable"? E.g. change it to ‘Your company has not purchased this product yet so your price has not been set online. Please contact us with your requirements for a quote.’
Thanks for the feedback - we're always looking to make the plugin better, so any suggestions are helpful and we will consider for future updates
On those points:
1) Do you mean the User's My Account Dashboard?
There are no options with our plugin to show something else there. We can look at adding something there, but I want to point out that there are dedicated My Acct plugins on the market - it may help to take a look at those - for example: https://yithemes.com/themes/plugins/yith-woocommerce-customize-myaccount-page/
2) Hiding the offers tab could be achieved with code snippets, but it's not something we want to add directly to the plugin as it could make many confused about why the tab doesn't show.
You can do it with this PHP snippet:
add_filter('option_b2bking_enable_offers_setting', function($value){
if (!is_admin()){
// if no offers, set to 0
$user_id = get_current_user_id();
$account_type = get_user_meta($user_id,'b2bking_account_type', true);
if ($account_type === 'subaccount'){
// Check if user has permission to view all account offers
$permission_view_account_offers = filter_var(get_user_meta($user_id, 'b2bking_account_permission_view_offers', true), FILTER_VALIDATE_BOOLEAN);
if ($permission_view_account_offers === true){
// for all intents and purposes set current user as the subaccount parent
$parent_user_id = get_user_meta($user_id, 'b2bking_account_parent', true);
$user_id = $parent_user_id;
}
}
$user = get_user_by('id', $user_id) -> user_login;
$currentusergroupidnr = get_user_meta( $user_id, 'b2bking_customergroup', true );
// Define custom query parameters
$custom_query_args = array( 'post_type' => 'b2bking_offer',
'post_status' => 'publish',
'posts_per_page' => 5,
'meta_query'=> array(
'relation' => 'OR',
array(
'key' => 'b2bking_group_'.$currentusergroupidnr,
'value' => '1',
),
array(
'key' => 'b2bking_user_'.$user,
'value' => '1',
),
));
// Instantiate custom query
$custom_query = new WP_Query( $custom_query_args );
// Output custom query loop
if ( ! $custom_query->have_posts() ) {
$value = 0;
}
}
return $value;
});
4) You can change that text through settings, by going to B2BKing -> Settings -> Language and Text. You will find the Price is unavailable text there as a setting.
Hello,
We have been implementing the B2B King plugin and have been given a range of feedback by clients. It would be good to know if these are possible, and if not, if they could be implemented as new features/updates.
- When you log in to the Dashboard page is it possible to show something more informational/vibrant? E.g have a dashboard, were the B2B client can visually see a graph of items ordered when.
- Is it possible to hide the Offers tab when there are no offers?
- Is it possible to rename the Bulk Order tab, e.g. to Quick Order?
- Is it possible for products where prices aren’t shown, change the description of "Price is unavailable"? E.g. change it to ‘Your company has not purchased this product yet so your price has not been set online. Please contact us with your requirements for a quote.’
Hi Dan,
Thanks for the feedback - we're always looking to make the plugin better, so any suggestions are helpful and we will consider for future updates
On those points:
1) Do you mean the User's My Account Dashboard?
There are no options with our plugin to show something else there. We can look at adding something there, but I want to point out that there are dedicated My Acct plugins on the market - it may help to take a look at those - for example: https://yithemes.com/themes/plugins/yith-woocommerce-customize-myaccount-page/
2) Hiding the offers tab could be achieved with code snippets, but it's not something we want to add directly to the plugin as it could make many confused about why the tab doesn't show.
You can do it with this PHP snippet:
To add a PHP snippet: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/
3) You can rename the Bulk Order tab through translation (even if you are translating from English -> English, it does not actually have to be a different language). You could create a translation and change the text there. You can do that with the Loco Translate plugin. More info at https://woocommerce-b2b-plugin.com/docs/how-to-translate-b2bking-to-any-language-localization/#4-toc-title
4) You can change that text through settings, by going to B2BKing -> Settings -> Language and Text. You will find the Price is unavailable text there as a setting.
Kind regards,
Stefan
Thank you Stefan, that is really good feedback. I will check out these items.