wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
01Day 19Hr 43Min 57Sec
wcfm-santa

remove tool tip and move field description to below field.

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 remove tool tip and move field description to below field.

Viewing 4 reply threads
  • Author
    Posts
    • #109384
      wpxpert
      Participant

      where I need to make changes.

      Attachments:
      You must be logged in to view attached files.
    • #109897
      WCFM Forum
      Keymaster

      Hi,

      Please add this code to your site for the purpose-

      add_filter( 'wcfm_product_manage_fields_advanced', function( $advance_fields, $product_id ) {
      	if( isset( $advance_fields['menu_order'] ) ) {
      		$advance_fields['menu_order']['desc'] = $advance_fields['menu_order']['hints'];
      		$advance_fields['menu_order']['desc_class'] = 'wcfm_page_options_desc';
      		unset( $advance_fields['menu_order']['hints'] );
      	}
      	return $advance_fields;
      }, 50, 2 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

      Thank You

    • #110207
      wpxpert
      Participant

      Thanks for the code. its working fine.

      but I need to do for all tooltip in wcfm.

    • #110752
      wpxpert
      Participant

      HI, I did you read my comments?

    • #110949

      Hello,

      For “Advance” menu,
      Add this code,

      add_filter( 'wcfm_product_manage_fields_advanced', function( $advance_fields, $product_id ) {
      	if( isset( $advance_fields['menu_order'] ) ) {
      		$advance_fields['menu_order']['desc'] = $advance_fields['menu_order']['hints'];
      		$advance_fields['menu_order']['desc_class'] = 'wcfm_page_options_desc';
      		unset( $advance_fields['menu_order']['hints'] );
      	}
      	if( isset( $advance_fields['purchase_note'] ) ) {
      		$advance_fields['purchase_note']['desc'] = $advance_fields['purchase_note']['hints'];
      		$advance_fields['purchase_note']['desc_class'] = 'wcfm_page_options_desc';
      		unset( $advance_fields['purchase_note']['hints'] );
      	}
      	return $advance_fields;
      }, 50, 2 );

      Regarding all tooltip in WCFM,
      Like above script you have to write in similar way for different filters.
      example: For inventory SKU,

      add_filter( 'wcfm_product_fields_stock', function( $fields, $product_id, $product_type ) {	
      		$fields['sku']['desc'] = $fields['sku']['hints'];
      		$fields['sku']['desc_class'] = 'wcfm_page_options_desc';
      		unset( $fields['sku']['hints'] );	
      	return $fields;
      }, 50, 3 );

      You can find filters in wp-content/plugins/wc-frontend-manager/views/products-manager/wcfm-view-products-manage-tabs.php file.

      Thanks.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.