Redirecting Vendors to Vendor Dashboard on Login
Snippet To Redirect Vendors to their Dashboard on login
Custom fields to vendor settings page
add_action('wcvendors_settings_after_paypal', 'pv_add_custom_merchant_id_field'); function pv_add_custom_merchant_id_field() { ?>
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…
Add a custom column to Commission table
/** * Add custom columns label * * @param Array $columns array stored column names *…
Add order status to commissions table
/** * Add order status to commissions table * * @param Array $columns array stored column…
Add order status to the commissions table export
/** * Add order status to the commissions table export */ function wcv_commission_export_columns( $columns ){ $columns['order_status']…
Custom Field to Vendor Settings Page
/* WC Vendors Pro - My Custom Field */ function store_bank_details( ){ if ( class_exists( 'WCVendors_Pro'…
Remove Method label
add_filter( 'woocommerce_cart_shipping_method_full_label', 'remove_shipping_method_title', 10, 2 ); function remove_shipping_method_title( $label, $method ){ $new_label = ''; if (…
Change Method Label
add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…
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 (…
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(…
Allow HTML in the product description
function wcv_wpkses_post_html_tags( $tags, $context ) { if ( 'post' === $context ) { $tags['iframe'] = array(…