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
[wcv_vendor_dashboard]
Vendor Shop Settings Page
This page is usually a child page of the vendor dashboard page defined above.
[wcv_shop_settings]
Vendor Orders Page
This page is usually a child page of the vendor dashboard page defined above.
[wcv_orders]
Sold By
This is a shortcode that can be used in your theme or theme builder to move where the sold by is displayed on the single product page
[wcv_sold_by]
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
[wcv_recent_products vendor="VENDOR-LOGIN-NAME" per_page=3 ]
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
[wcv_products vendor="VENDOR-LOGIN-NAME"]
Featured Products Shortcode
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
[wcv_featured_products vendor="VENDOR-LOGIN-NAME"]
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
[wcv_sale_products vendor="VENDOR-LOGIN-NAME"]
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
[wcv_top_rated_products vendor="VENDOR-LOGIN-NAME"]
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
[wcv_best_selling_products vendor="VENDOR-LOGIN-NAME"]
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
[wcv_product_category category="category-slug" vendor="VENDOR-LOGIN-NAME"]
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
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.
- has_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
[wcv_vendorslist orderby="registered" order="ASC" per_page="12" has_products="yes"]