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!

169 Snippets
10+ Favourites
20+ Downloads

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…

Paystack Split Payments Integration with WC Vendors — Saving the Vendor Sub-Account Code

update_user_meta( $user->ID, '_paystack_sub_account_code', 'ACCT_xxxxxxxxxxxxx' );

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

Add vat over the commission

This will add VAT value over the commission

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…

Add TikTok to the social tab of settings

This will show the setting and it should be saved when saving the form.

Paystack Split Payments Integration with WC Vendors — Calculating Vendor Splits

if ( wc_string_to_bool( get_option( 'wcvendors_vendor_give_taxes' ) ) ) { // Add tax fees to vendor total…

1 6 7 8 9 10