Learn about advanced integration with WC Vendors plugin.
The WC Vendors plugin allows you to create a multi-vendor marketplace, enabling you to earn commissions on each sale. It offers a variety of built-in features and additional addons to further enhance its functionality.
One of the most exciting aspects is that Advanced Woo Labels (AWL) has integrated support for the WC Vendors plugin.
You can utilize additional text variables to display important information about your shop vendors directly within labels. Furthermore, you can set display conditions for labels based on various vendor data.
Here are some examples of potential use cases:
1. Display a badge with vendor information next to each product sold by that vendor.
2. Show a Trusted Vendor label for products sold by vendors with trusted status.
3. Display a Top Rated Vendor label for products sold by vendors with an average rating of 4.5 or higher.
Text variables allow you to insert custom or dynamic data into your label text.
You can combine these text variables with any plain text or HTML markup. It’s also beneficial to use them with related display conditions to ensure the label appears only for the relevant products.
The integration with the WC Vendors plugin introduces many new text variables that display information about shop vendors. Below, we will cover these in detail.
Display a Sold by
badge for all products sold by vendors using the WC Vendors plugin.
This badge includes information such as the vendor shop name, logo, average rating, and review count. You can also set a link to the vendor store page.
To display this badge in a label, use the {WCVENDORS_SHOP_BADGE}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_BADGE}
.
Utilize this text variable alongside display conditions like Is product sold by any vendor or Product is sold by X vendor to ensure the label appears only for products sold by WC Vendors vendors.
Display the logo of the current vendor for the product.
If the vendor lacks a custom logo, the default WC Vendors logo will be displayed. An empty string will appear if the product is not sold by any vendor.
To show this logo in a label, use the {WCVENDORS_SHOP_LOGO}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_LOGO}
.
Combine this text variable with display conditions like Is product sold by any vendor or Product is sold by X vendor to ensure the label appears only for products sold by WC Vendors vendors.
Display the WC Vendors store name for the current product within the AWL label. An empty string will be shown if the product is not sold by any vendor.
To display this name in a label, use the {WCVENDORS_SHOP_NAME}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_NAME}
.
You can also add display conditions for this label to customize its appearance or ensure it is only shown for products sold by WC Vendors vendors.
Show the vendor shop link within the label for the current product.
To display this link in a label, use the {WCVENDORS_SHOP_LINK}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_LINK}
.
This will display a link text inside the label. To create a clickable link to the vendor’s store, you can use the Link label option.
Steps to create a label link:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Link metabox on the right sidebar. Add {WCVENDORS_SHOP_LINK}
to create a label link that leads to the vendor's shop page.
Display the average store rating of the vendor inside the label for current WooCommerce products.
To show this rating in a label, use the {WCVENDORS_SHOP_RATING}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_RATING}
.
You can also set display conditions for this label. For example, use the Average Store Rating condition to display the label only for top-rated stores, such as those with an average score of 4.5 or higher out of 5.
Show the number of vendor store reviews inside the label for current WooCommerce products.
To display this count in a label, use the {WCVENDORS_SHOP_REVIEWS_NUM}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SHOP_REVIEWS_NUM}
.
Use this label with specific display conditions. For instance, apply the Store Reviews Count condition to show the label with the review count only for stores with more than X reviews.
Display the number of products offered by the vendor inside the label.
To display this count in a label, use the {WCVENDORS_PRODUCTS_NUM}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_PRODUCTS_NUM}
.
Combine this text variable with the Vendor Store Products Number display condition to show the label only for products sold by vendors with fewer or more than X products.
Display the number of sales made by the vendor for each product inside the label.
To display this count in a label, use the {WCVENDORS_SALES_NUM}
text variable.
Steps to display this text variable:
1. Navigate to the label edit page for the label you want to modify.
2. Locate the Label Text option (available only for the Shape with Text label type) and insert {WCVENDORS_SALES_NUM}
.
Combine this text variable with the Vendor Store Sales Number display condition to show the label only for products sold by vendors with fewer or more than X sales.
With label display conditions, you can establish specific rules regarding which products the labels should be visible on and which pages they should appear.
You can set multiple display conditions simultaneously and group them into OR/AND categories to create complex logic for label visibility.
The integration with WC Vendors introduces numerous new display rules that you can utilize. Below, we will cover all of these rules in detail.
Display the label only for products sold by WC Vendors vendors. Alternatively, you can show the label only for products that are not sold by any WC Vendors vendor.
Such conditions can be set via Is product sold by any vendor
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Is product sold by any vendor. Also specify compare operator and value ( true
or false
) depending on your needs.
Show the label only for products sold by specific WC Vendors vendors. Alternatively, display the label for all products sold by WC Vendors vendors, excluding certain vendor shops.
Such conditions can be set via Is product sold by label
display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Is product sold by. Also specify the compare operator and value ( vendor name ) depending on your needs.
Display the label only inside the WC Vendors vendor shop page. Or display it everywhere except this shop page.
Such conditions can be set via Is store page
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Is store page. Also set compare operator and value ( true
or false
) depending on your needs.
Show/hide labels for products that are sold by verified WC Vendors vendor.
Such conditions can be set via Is sold by verified vendor
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Is sold by verified vendor. Also set compare operator and value ( true
or false
) depending on your needs.
Show/hide labels for products that are sold by trusted WC Vendors vendor.
Such conditions can be set via Is sold by trusted vendor
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Is sold by trusted vendor. Also set compare operator and value ( true
or false
) depending on your needs.
Display label for current product based on average WC Vendors vendor store rating.
Such conditions can be set via Vendor store rating
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Vendor store rating. Choose the needed compare operator ( equal to
, not equal to
, greater or equal to
, less or equal to
) and value of rating to compare with.
Hide/show label based on current product vendor store reviews count.
Such conditions can be set via Vendor store reviews count
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Vendor store reviews count. Choose the needed compare operator ( equal to
, not equal to
, greater or equal to
, less or equal to
) and value of reviews count to compare with.
Hide/show label based on current product vendor store sales number.
Such conditions can be set via Vendor store total sales count
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Vendor store total sales count. Choose the needed compare operator ( equal to
, not equal to
, greater or equal to
, less or equal to
) and value of sales count to compare with.
Hide/show label based on current product vendor products number.
Such conditions can be set via Vendor store products number
label display condition.
Steps to set this label display condition:
1. Open the label edit page and find Label Conditions box.
2. Set new condition - Vendor store products number. Choose the needed compare operator ( equal to
, not equal to
, greater or equal to
, less or equal to
) and value of products number to compare with.