Filter by Vendor
Vendor support is a Pro feature.
The plugin offers the functionality to filter posts by vendor, making it compatible with multi-vendor setups. When enabled, the filter displays the store name as the label for the vendor filter option, allowing customers to easily filter products from specific vendors or stores.
To enable vendor support, follow these steps:
- Go to the plugin settings by navigating to WCAPF > Settings.
- Click on the “Integration” tab.
- Locate the “Vendor support” setting field and enable it.
- Save the changes to apply the configuration.
Currently, the plugin supports the following plugins for vendor integration: WC Vendors and WCFM Marketplace.
In addition to enabling vendor support, you can utilize a hook to define the meta key that contains the store name for the post author. This allows you to customize the integration further according to your requirements.
Here’s an example code snippet that demonstrates how to use the hook:
function wcapf_store_name_meta_key() {
return '_store_name';
}
add_filter('wcapf_store_name_meta_key', 'wcapf_store_name_meta_key');
You can modify the '_store_name'
value in the code snippet to match the meta key used in your setup.