Order Form Themes & Styling

Starting with B2BKing version 4.1.5, there are now themes you can choose from in the order form. There's the 'Classic' theme that requires you to search for products:

And two new themes, 'Indigo', and 'Cream' have been added. These themes show all products by default (limited to 100) rather than require you to search for them first.

Indigo theme:

Cream theme:

The Classic theme may be a better fit for stores with large numbers of products, whereas the Indigo or Cream theme may be a better fit for stores with only a small number of products (since these themes try to display all products by default).

How to switch between themes #

To switch the theme for the order form shown by default, you can go to B2BKing -> Settings -> Order Form, and change the value in the 'Order Form Theme' dropdown:

Bulk order form shortcode #

You can show the order form anywhere by using the plugin's [b2bking_bulkorder] shortcode.

You can also choose the theme displayed by using the theme parameter:

[b2bking_bulkorder theme=indigo]

[b2bking_bulkorder theme=cream]

[b2bking_bulkorder theme=classic]

Indigo and Cream Theme Product Names #

By default, the indigo theme will show the SKU or product ID in the product name. If you'd like to remove this for a cleaner look, you can add the following PHP code snippet to your site:

add_filter('b2bking_bulkorder_indigo_search_name_display', function($name, $product){
	$name = $product->get_name();
	return $name;
}, 10, 2);
add_filter('b2bking_bulkorder_cream_search_name_display', function($name, $product){
	$name = $product->get_name();
	return $name;
}, 10, 2);

Powered by BetterDocs