• Hi,

    Before this, I talk with one of your customer support and she ask me to test the plugin first in-case I can do some tweak for changing “Vendor” title or word to “Seller” or anything I want. But still I can’t do it.

    Do you have any shortcode or any function code for me to change the Vendor to Seller?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    for this you can use this php code:

    add_filter( 'yith_product_vendors_taxonomy_label', 'yith_product_vendors_taxonomy_label' );
    
    if( ! function_exists( 'yith_product_vendors_taxonomy_label' ) ){
        function yith_product_vendors_taxonomy_label( $labels ){
            $labels = array(
    	        'name'                       => __( 'Seller', 'yith-woocommerce-product-vendors' ),
    	        'singular_name'              => __( 'Seller', 'yith-woocommerce-product-vendors' ),
    	        'menu_name'                  => __( 'Sellers', 'yith-woocommerce-product-vendors' ),
    	        'search_items'               => __( 'Search Sellers', 'yith-woocommerce-product-vendors' ),
    	        'all_items'                  => __( 'All Sellers', 'yith-woocommerce-product-vendors' ),
    	        'parent_item'                => __( 'Parent Seller', 'yith-woocommerce-product-vendors' ),
    	        'parent_item_colon'          => __( 'Parent Seller:', 'yith-woocommerce-product-vendors' ),
    	        'view_item'                  => __( 'View Seller', 'yith-woocommerce-product-vendors' ),
    	        'edit_item'                  => __( 'Edit Seller', 'yith-woocommerce-product-vendors' ),
    	        'update_item'                => __( 'Update Seller', 'yith-woocommerce-product-vendors' ),
    	        'add_new_item'               => __( 'Add New Seller', 'yith-woocommerce-product-vendors' ),
    	        'new_item_name'              => __( 'New Seller\'s Name', 'yith-woocommerce-product-vendors' ),
    	        'popular_items'              => null, //don't remove!
    	        'separate_items_with_commas' => __( 'Separate sellers with commas', 'yith-woocommerce-product-vendors' ),
    	        'add_or_remove_items'        => __( 'Add or remove sellers', 'yith-woocommerce-product-vendors' ),
    	        'choose_from_most_used'      => __( 'Choose from most used sellers', 'yith-woocommerce-product-vendors' ),
    	        'not_found'                  => __( 'No sellers found', 'yith-woocommerce-product-vendors' ),
    	        'back_to_items'              => sprintf( '%s %s', '←', __( 'Back to Sellers', 'yith-woocommerce-product-vendors' ) ),
            )
            ;
    
            return $labels;
        }
    }

    Please, copy this code and past it at the end of functions.php file located in the theme folder.
    Let me know if works.

    Thread Starter limevanilla

    (@limevanilla)

    Hi,

    Thanks for the code and here I list the Vendor part.

    For Back End

    1. On Add New Seller still got “Vendor Shop Owner”
    2. Roles is still set to Vendor.

    For Front End

    1. The “Vendor” (Vendor Tab) still available in Product Single Page
    2. Vendor Profile which use in back-end for vendor.
    3. On My Account page, have one too “My Vendor Dashboard”.

    Other than that, everything which come from your plugin (setting part), is okay for me. Just, I don’t want people see the “Vendor” word only.

    And how do I remove commission menu? Since I didn’t use commission, I think it’s better for me to remove the menu from Vendor Dashboard.

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    for Back End:

    1. You need to override the template by theme. Please, copy the file wp-content/plugins/yith-woocommerce-multi-vendor.premium/templates/admin/add-product-vendors-taxonomy.php in wp-content/themes/YOUR-THEME-Folder/woocommerce/admin and edit the string Vendor Shop Owner in Seller.

    2. This is a cached value, please deactivate and activate the plugin again. This will solve your issue

    for Front End:

    1. This is strange because use the taxonomy singular name so the plugin must force it to Seller with the previous codef, probably after disable/enable plugin this problem disappears.

    2. Please, copy this code and past it at the end of functions.php file located in the theme folder:

    add_filter( 'yith_wc_product_vendors_details_menu_items', 'yith_wc_product_vendors_details_menu_items' );
    
    if( ! function_exists( 'yith_wc_product_vendors_details_menu_items' ) ){
        function yith_wc_product_vendors_details_menu_items( $args ){
    	    $args['page_title'] = __( 'Seller Profile', 'yith-woocommerce-product-vendors' );
            $args['menu_title'] = __( 'Seller Profile', 'yith-woocommerce-product-vendors' );
            
            return $args;
        }
    }

    3. You need to override the template by theme. Please, copy the file wp-content/plugins/yith-woocommerce-multi-vendor.premium/templates/woocommerce/my-account/public_html/wp-content/plugins/yith-woocommerce-multi-vendor.premium/templates/woocommerce/myaccount/my-vendor-dashboard.php in wp-content/themes/YOUR-THEME-Folder/woocommerce/myaccount

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing all Vendor to Seller’ is closed to new replies.