Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Virtual product
Tagged: virtual
- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by WCFM Forum.
- AuthorPosts
- May 11, 2018 at 3:03 pm #23135daleParticipant
When a vendor adds a new product Virtual is ticked by default. The majority of the products are not virtual so how do I change it so it’s not ticked by default? Also, just before Virtual it stays Catalog. What is this tick box for?
- May 11, 2018 at 4:39 pm #23136WCFM ForumMember
Hi Dale,
I understand your concern and thanks for get in touch with us for assistance.
Actually, WC by default set “Virtual” option checked for add product page, so we just follow the same.
But this can be altered, you just have to add this code to your site –function wcfm_product_manage_fields_general_custom_virtual( $general_fields, $product_id, $product_type ) { if( isset( $general_fields['is_virtual'] ) && $product_id ) { $general_fields['is_virtual']['dfvalue'] = ''; } return $general_fields; } add_filter( 'wcfm_product_manage_fields_general', 'wcfm_product_manage_fields_general_custom_virtual', 10, 3 );
Catalog mode- you may get the idea from here https://wclovers.com/knowledgebase/wcfm-catalog-mode/
If you still have any queries or require any assistance feel free to reach us anytime.
Thank You
Simha
- AuthorPosts
- The topic ‘Virtual product’ is closed to new replies.