WCFM Ultimate Germanized hide some of the features

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 WCFM Ultimate Germanized hide some of the features

Viewing 3 reply threads
  • Author
    Posts
    • #25992
      Toni
      Participant

      Hi,

      Sorry, I was a bit late to answer this topic:

      https://wclovers.com/forums/topic/wcfm-ultimate-and-germanized/

      Unfortunately, the code you send me works too well 🙂 It also removes features that I need too (“shipping time” and “free shipping?” Checkbox wich hide excl. Shipping costs label on Product page)

      Is it possible to remove only the fields that I have sent in the attachment?

      Thank you

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

      Hi,

      I understand your requirement but it was not possible with some core tweaks.

      Now WCfM 4.1.9 has released and this can be possible to achieve.

      You just remove that old code regarding WC Germanized and this codes to your site –

      function wcfm_restrict_wc_germanized_general( $fileds ) {
      	global $WCFM;
      	remove_filter( 'wcfm_product_manage_fields_general', array( &$WCFM->wcfm_thirdparty_support, 'wcfm_woocommerce_germanized_product_manage_fields_general' ), 40, 3 );
      	return $fileds;
      }
      add_filter( 'wcfm_product_manage_fields_general', 'wcfm_restrict_wc_germanized_general', 39 );
      
      function wcfm_restrict_wc_germanized_content( $fileds ) {
      	global $WCFM;
      	remove_filter( 'wcfm_product_manage_fields_content', array( &$WCFM->wcfm_thirdparty_support, 'wcfm_woocommerce_germanized_product_manage_fields_content' ), 50, 3 );
      	return $fileds;
      }
      add_filter( 'wcfm_product_manage_fields_content', 'wcfm_restrict_wc_germanized_content', 39 );
      
      function wcfm_restrict_wc_germanized_pricing( $fileds ) {
      	global $WCFM;
      	remove_filter( 'wcfm_product_manage_fields_pricing', array( &$WCFM->wcfm_thirdparty_support, 'wcfm_woocommerce_germanized_product_manage_fields_pricing' ), 50, 3 );
      	return $fileds;
      }
      add_filter( 'wcfm_product_manage_fields_pricing', 'wcfm_restrict_wc_germanized_pricing', 39 );

      Please know me is this fulfill your requirement or not!

      Thank You

    • #26578
      Toni
      Participant

      Hi,

      I have made an update and integrated the code.

      Unfortunately, the field “short description” is also hidden, which is displayed in the checkout and I definitely need this for legal reasons.

      If you can only adjust the code once more, I would be very grateful.

      Thanks a lot

    • #26642
      WCFM Forum
      Keymaster

      Hi,

      Ok, that’s pretty simple.

      Just remove this code block from above codes –

      function wcfm_restrict_wc_germanized_content( $fileds ) {
      	global $WCFM;
      	remove_filter( 'wcfm_product_manage_fields_content', array( &$WCFM->wcfm_thirdparty_support, 'wcfm_woocommerce_germanized_product_manage_fields_content' ), 50, 3 );
      	return $fileds;
      }
      add_filter( 'wcfm_product_manage_fields_content', 'wcfm_restrict_wc_germanized_content', 39 );

      Thank You

Viewing 3 reply threads
  • The topic ‘WCFM Ultimate Germanized hide some of the features’ is closed to new replies.