Search results for: admin
Allow WooCommerce Shop Managers to manage vendors
/* Lets Shop Managers edit users with these user roles */ function wcv_allow_shop_manager_role_edit_capabilities( $roles ) {…
Add menu item to vendor dashboard
// Add this to your themes functions.php function add_menu_item( $pages ){ $pages[] = array( 'label' =>…
Use Full Store Address in Ships From
add_filter( 'wcv_product_ships_from', 'ships_from_address' ); function ships_from_address( $field ){ global $post, $product; $shipping_disabled = wc_string_to_bool( get_option( 'wcvendors_shipping_management_cap',…
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;
Custom Tab Order For Dashboard
// Add this to your themes functions.php to change the order, rearrage the lines. First line…
Shipping label template
/** * The template for displaying the shipping label * * Override this template by copying…
Add Tax ID to Shipping Label
/** * Add the Tax ID Field to the settings page * * In this example…
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 ){…
Add the fields to the user edit screen
// Add the fields to user edit screen. add_action( 'show_user_profile', 'add_extra_user_fields' ); add_action( 'edit_user_profile', 'add_extra_user_fields' );…
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 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 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 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…