Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › How to hide some options for vendor
- This topic has 10 replies, 3 voices, and was last updated 5 years, 4 months ago by WCFM Forum.
- AuthorPosts
- June 10, 2019 at 4:23 pm #66785JoseParticipant
Hi,
I would like to hide some options that changed and others new.
1.- Catalog visibility for vendors
2.- Just allow private notes in orders
3.- Hide facebook and Twitters settings in SEO (I have off social in profile capability)
4.- Hide option of Hide map in vendor settingPlease see the attachments
Regards and thank you !
Attachments:
You must be logged in to view attached files. - June 11, 2019 at 5:36 pm #67031WCFM ForumMember
Hi,
Use these code snippets for the purpose –
1.- Catalog visibility for vendors
add_filter( 'wcfm_is_allow_products_manage_visibility', '__return_false' );
2.- Just allow private notes in orders
– Add this CSS –
#order_note_type{display:noe!important;}
3.- Hide facebook and Twitters settings in SEO (I have off social in profile capability)
add_filter( 'wcfm_is_allow_vendor_seo_facebook', '__return_false' ); add_filter( 'wcfm_is_allow_vendor_seo_twitter', '__return_false' );
4.- Hide option of Hide map in vendor setting
add_filter( 'wcfm_is_allow_store_map_location', '__return_false' );
Thank You
- June 11, 2019 at 5:43 pm #67037JoseParticipant
Hi,
Thanks a lot for the codes.
But, N° 1 and 4 don’t work
Regards,
- June 12, 2019 at 6:29 am #67132WCFM ForumMember
Hi,
Please use this snippet for that –
add_filter( 'product_simple_fields_visibility', function( $catalog_fields ) { $catalog_fields = wcfm_hide_field( 'catalog_visibility', $catalog_fields ); return $catalog_fields; });
Thank You
- June 12, 2019 at 1:31 pm #67197
- June 12, 2019 at 8:26 pm #67239inspireParticipantThis reply has been marked as private.
- June 13, 2019 at 8:37 pm #67474WCFM ForumMember
Hi,
Please be sure you are using WCFM 6.1.5+
Thank You
- July 4, 2019 at 4:31 pm #71088
- July 6, 2019 at 9:18 am #71291WCFM ForumMember
Hi,
Use this code snippet –
add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) { if( isset( $stock_fields['stock_status'] ) ) { $stock_fields['stock_status']['options'] = array( 'instock' => __('In stock', 'wc-frontend-manager'), 'outofstock' => __('Out of stock', 'wc-frontend-manager') ); } return $stock_fields; }, 50, 3 );
Thank You
- July 6, 2019 at 1:56 pm #71316JoseParticipant
Hi,
Work perfect !!
Thanks you so much
- July 7, 2019 at 9:03 am #71384WCFM ForumMember
Welcome 🙂
- AuthorPosts
- The topic ‘How to hide some options for vendor’ is closed to new replies.