Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Error "File & Name is required"
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Sarmistha Chakraborty.
Viewing 2 reply threads
- AuthorPosts
- April 26, 2020 at 5:55 pm #123273hectorParticipant
Hi,
When trying to add a product on the front end, I keep getting:
Name: This field is required.
File: This field is required.Running Version 6.4.8
Kind regards
- April 26, 2020 at 8:28 pm #123339Sarmistha ChakrabortyMember
Hello,
Do you add any custom code to enable “Downloadable” option by-default for product?
Thanks.
- April 26, 2020 at 8:36 pm #123341hectorParticipant
Hi,
I disabled Virtual and Downloadable with this code:
// START: Disable Virtual & Downloadable // From marketplace function disable_virtual_downloadable_support( $general_fields ) { if ( isset( $general_fields['is_virtual'] ) ) unset( $general_fields['is_virtual'] ); if ( isset( $general_fields['is_downloadable'] ) ) unset( $general_fields['is_downloadable'] ); return $general_fields; } add_filter( 'wcfm_product_manage_fields_general', 'disable_virtual_downloadable_support' ); // From general Woocommerce add_filter( 'product_type_options', function( $options ) { // remove "Virtual" checkbox if( isset( $options[ 'virtual' ] ) ) { unset( $options[ 'virtual' ] ); } // remove "Downloadable" checkbox if( isset( $options[ 'downloadable' ] ) ) { unset( $options[ 'downloadable' ] ); } return $options; } );
- April 26, 2020 at 8:57 pm #123349Sarmistha ChakrabortyMember
Hi,
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/add_filter('wcfmu_is_allow_downloadable','__return_false');
//to remove downloadable product.Thanks.
- AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.