Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › Product Vendors › Delete fields from add product section
- This topic has 1 reply, 2 voices, and was last updated 6 years, 4 months ago by
WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- October 3, 2018 at 4:46 pm #33208
ing.acrd
ParticipantHello,
We dont want to allow vendor control the catalog visibility and in the Inventory section dont want vendors can allow product reservation (when the stock is 0), and either the opcion of individually sold.
- October 4, 2018 at 8:38 am #33251
WCFM Forum
MemberHi,
Please add these code to your site –
1. Disable Product Catalog visibility setting –
add_filter( 'wcfm_is_allow_products_manage_visibility', '__return_false' );
2. Back order and individually sold –
function wcfm_0410_product_fields_stock( $stock_fields, $product_id, $product_type ) { if( isset( $stock_fields['backorders'] ) ) { $stock_fields['backorders']['class'] = 'wcfm_custom_hide'; $stock_fields['backorders']['label_class'] = 'wcfm_custom_hide'; } if( isset( $stock_fields['sold_individually'] ) ) { $stock_fields['sold_individually']['class'] = 'wcfm_custom_hide'; $stock_fields['sold_individually']['label_class'] = 'wcfm_custom_hide'; } return $stock_fields; } add_filter( 'wcfm_product_fields_stock', 'wcfm_0410_product_fields_stock', 50, 3 );
Thank You
- AuthorPosts
Viewing 1 reply thread
- The topic ‘Delete fields from add product section’ is closed to new replies.