Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › WCFM Ultimate Germanized hide some of the features
- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by WCFM Forum.
- AuthorPosts
- July 6, 2018 at 7:33 am #25992ToniParticipant
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. - July 14, 2018 at 7:19 am #26368WCFM ForumMember
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
- July 19, 2018 at 7:45 am #26578ToniParticipant
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
- July 20, 2018 at 3:25 am #26642WCFM ForumMember
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
- AuthorPosts
- The topic ‘WCFM Ultimate Germanized hide some of the features’ is closed to new replies.