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(…

Add a document file upload

// Add the document field to the signup form. add_action( 'wcv_form_input_after__wcv_store_name', 'wcv_doc_uploader'); function wcv_doc_uploader( ){ if…

Add an image filed to the sign up form

// Add the image field to the signup form. add_action( 'wcv_form_input_after__wcv_store_name', 'wcv_image_uploader'); function wcv_image_uploader( ){ if…

Add an audio field to the sign up form

// Add the audio field to the signup form. add_action( 'wcv_form_input_after__wcv_store_name', 'wcv_audio_uploader'); function wcv_audio_uploader( ){ //…

Add a video field to the sign-up form

// Add the video field to the signup form. add_action( 'wcv_form_input_after__wcv_store_name', 'wcv_video_uploader'); function wcv_video_uploader( ){ //…

Add Custom Settings Tab to Vendor Dashboard

// Add the tab to the tab nav add_filter( 'wcv_store_tabs', 'add_custom_tab_nav' ); function add_custom_tab_nav( $tabs ){…

Disable Product delete for published products only

/** * This will disable delete only for published products, leaving drafts to be able to…

Add Tax ID to Shipping Label

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

Shipping label template

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

Custom Tab Order For Dashboard

// Add this to your themes functions.php to change the order, rearrage the lines. First line…

Use Billing Address in Order Exports

add_filter( 'wcv_export_orders_use_shipping_address', 'wcv_order_export_use_shipping_address' ); function wcv_order_export_use_shipping_address( ){ return false;

1 52 53 54 55 56 92