Unable rights to change policy title when submitting products

WooCommerce Multivendor Marketplace – Home Forums WCFM – Ultimate Unable rights to change policy title when submitting products

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by WCfM Forum WCfM Forum 1 month ago.

  • Author
    Posts
  • #34715 Reply

    inspire
    Participant

    Hello,

    How can i unable the right to give the name for product policy for store vendor, when he creates a product?
    We want a standard title like – Policy – to be the title for all the products. Is confusing to have different name of this section for each product.

    Attachments:
    You must be logged in to view attached files.
  • #34934 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    Kindly add this code snippet to your site for the purpose –

    add_filter( 'product_manage_fields_policies', function( $policy_fields, $product_id ) {
    	if( isset( $policy_fields['wcfm_policy_tab_title'] ) ) {
    		$policy_fields['wcfm_policy_tab_title']['class'] = 'wcfm_custom_hide';
    		$policy_fields['wcfm_policy_tab_title']['label_class'] = 'wcfm_custom_hide';
    	}
    	return $policy_fields;
    }, 50, 2 );
    add_filter( 'wcfm_product_policy_tab_title', function( $wcfm_product_policy_tab_title, $product_id ) {
    	$wcfm_product_policy_tab_title = 'Policy';
      return $wcfm_product_policy_tab_title;
    }, 50, 2);

    Thank You

  • #36213 Reply

    Alexandru
    This reply has been marked as private.
  • #36314 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    Add this to your child theme’s functions.php

    Thank You

  • #36360 Reply

    Alexandru

    We did it, but there appears a conflict and it automatically signs out the vendor. Should i send you login info?

    Thanks!
    Alexandru

  • #36425 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    I think that because of something else!

    This code has nothing like that to make an user logged out.

    You may disable this code snippet and take a look.

    Just check what else you have changed recently!

    Thank You

Reply To: Unable rights to change policy title when submitting products
Your information: