Pages and Shortcodes

The following shortcodes are required for WC Vendors to function. When you activate the plugin these pages and related short codes should be automatically created if they are not then you will need to create the pages, assign the short codes and then configure the pages in the WC Vendors settings.

Vendor Dashboard Page

Vendor Shop Settings Page

This page is usually a child page of the vendor dashboard page defined above.

Vendor Orders Page

This page is usually a child page of the vendor dashboard page defined above.

Other Shortcodes

The following list of shortcodes allow you to customise how your site looks and are based on the WooCommerce shortcodes of the same functionality with vendor filtering added. Where it says ‘VENDOR-LOGIN-NAME‘ replace this with the vendors username that you want to display.

Recent Products

To show recent products for a specific vendor you can use the following short code. Available options include the following

  • vendor – the vendor you want to display the recent products of
  • per_page – the name of products per page

Vendor Products

To show all products for a specific vendor, for example in a blog post you can use the following shortcode. Available options include the following

  • vendor- the vendor you want to display the products of

If you have enabled featured products for your vendors then the following shortcode will allow you to display the featured products for a specific vendor. Available options include the following

  • vendor- the vendor you want to display the featured products of

Sale Products

If you would like to show the products on sale for a specific vendor, for example in a news or promotion then use the following shortcode. Available options include the following

  • vendor- the vendor you want to display the sale products of

Top Rated Products On Sale

If you would like to show the top rated products for vendor while using the built in WooCommerce reviews system then use the following shortcode. Available options include the following

  • vendor- the vendor you want to display the top rated products of

Best Selling Products On Sale

To show a list of best selling products on sale for a specific vendor you can use the following shortcode. Available options include the following

  • vendor- the vendor you want to display the best selling sale products

Product Category and Vendor

If you want to show a vendors products in a specific category then you can use the following shortcode. Available options include the following

  • vendor- the vendor you want to display the products of
  • category – the category slug that you would like to display

Directory of Vendors

If you would like to show a page with all your vendors on it then you can use the following shortcode. This can also be customised with the the vendors-list.php template found at the following location.

  • /templates/front/vendor-list.php

This would be overridden by copying it to your themes folder in the appropriate position.

Available options include the following

  • orderby – the order you would like to display the vendors in. The complete list of orderby options is available on the WordPress.org Codex. The default is ‘registered’.
  • order – the order you would like the vendors to be displayed this can be ascending (ASC) or descending (DESC). Ascending (ASC) is the default.
  • per_page – how many vendors per page, this should be a number. The default is 12 vendors to be displayed.
  • show_products – yes will show vendors that have products published. If you set this to no then you will include vendors without any products published. The default is yes

Please Note

If vendors have not set their shop name then they will not show up in the search results, even if you set “show_products” to no.

Updated on July 22, 2018

Was this article helpful?