Unable rights to change policy title when submitting products

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Unable rights to change policy title when submitting products

Tagged: 

Viewing 5 reply threads
  • Author
    Posts
    • #34715
      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
      WCFM Forum
      Member

      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
      Alexandru
      Guest
      This reply has been marked as private.
    • #36314
      WCFM Forum
      Member

      Hi,

      Add this to your child theme’s functions.php

      Thank You

    • #36360
      Alexandru
      Guest

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

      Thanks!
      Alexandru

    • #36425
      WCFM Forum
      Member

      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

Viewing 5 reply threads
  • The topic ‘Unable rights to change policy title when submitting products’ is closed to new replies.