About
Hey there! We're WC Vendors, the team behind the best WooCommerce multi vendor marketplace plugin.
You can find lots of code snippets on our profile here at WP Code that will enhance your marketplace with some of the less commonly asked for features we have generated installable code snippets for.
If you find a bug in one of these snippets please let us know via the support form on our site :)
And visit us if you're looking for a great multi vendor plugin for WooCommerce!
Add Vendor Ratings / Feedback to Product Page
add_action('woocommerce_before_add_to_cart_form','vendor_feedback_product_page'); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta('ID'); $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); if (…

Allow "Mark received" for Digital Product
if ( ! function_exists( 'wcv_allow_mark_received_for_digital_product' ) ) { /** * Allow vendors to mark received for…

Add Custom Taxonomy to Woocommerce Single Product Page
add_action( 'woocommerce_product_meta_end', 'wcv_add_brands_single_product' ); function wcv_add_brands_single_product() { global $product; $taxonomy = 'wcv_brands'; // The custom taxonomy…

Add Tax ID to Shipping Label
/** * Add the Tax ID Field to the settings page * * In this example…

Including product tax to commission calculation
add_filter( 'wcvendors_commission_rate', 'wcv_calculate_commission_include_product_tax', 10, 5 ); function wcv_calculate_commission_include_product_tax( $commission, $product_id, $product_price, $order, $qty ) { $product…

Commissions as a fixed dollar amount, or fixed plus a percentage.
add_filter( 'wcv_commission_rate', 'my_wcv_custom_filter', 10, 3 ); function my_wcv_custom_filter( $commission, $product_id, $product_price ) { return WCV_Commission::get_commission_rate( $product_id…

Require Downloadable fields - Downloadable product template
Require Downloadable fields - Downloadable product template

How to change the store address country for all vendors
/** * Set the vendor's store country to us. */ function wcv_set_vendor_country() { if ( function_exists(…

Shipping label template
/** * The template for displaying the shipping label * * Override this template by copying…
