This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_wcv_ship_mssg(){ | |
echo 'Your message here...'; | |
} | |
add_action('wcv_before_shipping_tab', 'custom_wcv_ship_mssg'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wcv_shipping_free_shipping_product', 'hide_wcv_shipping_free_shipping_product' ); | |
function hide_wcv_shipping_free_shipping_product( $field ) { | |
$field['label'] = __( '' ); | |
$field['description'] = __( '' ); | |
$field['type'] = 'hidden'; | |
$field['value'] = 'no'; | |
$field['wrapper_start'] = __( '' ); | |
$field['wrapper_end'] = __( '' ); | |
return $field; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gives vendors an option to allow gift wrapping. Requires https://wordpress.org/plugins/woocommerce-product-gift-wrap/ | |
/* This code should be pasted in your child theme's funcitons.php file */ | |
/* WC Vendors Pro - Gift Wrap Option */ | |
add_action( 'wcv_after_product_details', 'wcv_custom_product_gift_wrapper_enable',10,2 ); | |
function wcv_custom_product_gift_wrapper_enable () { | |
WCVendors_Pro_Form_Helper::input( | |
array( | |
'post_id' => $object_id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wcv_shipping_national_disable', 'change_wcv_shipping_national_disable' ); | |
function change_wcv_shipping_national_disable( $field ) { | |
$field['label'] = __( '' ); | |
$field['type'] = 'hidden'; | |
$field['value'] = 'no'; | |
$field['wrapper_start'] = __( '' ); | |
$field['wrapper_end'] = __( '' ); | |
return $field; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WC Vendors Pro - Add a new link to the Pro Dashboard */ | |
function new_dashboard_page( $pages ){ | |
$pages[] = array( 'label' => 'Your Page Name Here', 'slug' => 'https://your-website-here.com/the-page-here/' ); | |
return $pages; | |
} | |
add_filter( 'wcv_pro_dashboard_urls', 'new_dashboard_page' ); | |
/* WC Vendors Pro - Add another new link to the Pro Dashboard */ | |
function new_dashboard_page_two( $pages ){ | |
$pages[] = array( 'label' => 'Your Other Page Name Here', 'slug' => 'https://your-website-here.com/the-other-page-here/' ); | |
return $pages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* add this to your child theme functions.php */ | |
add_filter ('wcvendors_vendor_registration_checkbox', 'custom_wcvendors_vendor_registration_checkbox'); | |
function custom_wcvendors_vendor_registration_checkbox () { | |
$message = 'new apply text here'; | |
return $message; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make National Qty Override Checked by Default */ | |
add_filter( 'wcv_shipping_national_qty', 'change_wcv_shipping_national_qty' ); | |
function change_wcv_shipping_national_qty() { | |
$field['label'] = __( '' ); | |
$field['type'] = 'hidden'; | |
$field['value'] = 'yes'; | |
return $field; | |
} | |
add_filter( 'wcv_shipping_international_qty', 'change_wcv_shipping_international_qty' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add this to your themes functions.php to change the order, rearrage the lines. First line is first item, last is last etc. | |
add_filter( 'wcv_dashboard_pages_nav', 'change_nav_order'); | |
function change_nav_order( $pages ){ | |
$new_nav_order = array(); | |
$new_nav_order['dashboard_home'] = $pages['dashboard_home']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WC Vendors Pro - changes default product type to Bookable (booking). For the child theme functions.php */ | |
add_filter( 'wcv_default_product_type', 'wcv_default_product_type_bookable' ); | |
function wcv_default_product_type_bookable($product_type) { | |
$product_type = 'booking'; | |
return $product_type; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* change qty shipping label on store settings shipping form */ | |
add_filter( 'wcv_shipping_national_qty', 'change_wcv_shipping_national_qty' ); | |
function change_wcv_shipping_national_qty($field) { | |
$field['label'] = __( 'your new message here..' ); | |
if ( array_key_exists('label', $field ) ) $field[ 'label' ]= 'Charge single shipping rate for multiples of the exact same product'; | |
return $field; | |
} |