Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Ultimate › Product – Enable Reviews as required
- This topic has 1 reply, 2 voices, and was last updated 8 years, 9 months ago by
WCFM Forum.
- AuthorPosts
- December 10, 2017 at 12:33 am #16694
Brad Z
GuestThank you for the recent updates especially Enquiry! You guys are doing amazing work with WCFM! I just have one small issue:
I have it set in WooCommerce – Products that Enable Review should be a required field but in WCFM, the vendors can still turn off the “Enable Reviews” checkbox on a Product page. Please advise of solution.
Thanks,
Brad - December 10, 2017 at 6:40 am #16696
WCFM Forum
MemberHi,
Thanks for get in touch with us and it’s pleasure to know that you have very much liked latest updates.
I understand your requirement and here is the solution for you –
function wcfm_custom_product_manage_fields_advanced( $wcmp_advanced_fields ) { if( isset( $wcmp_advanced_fields['enable_reviews'] ) ) { $wcmp_advanced_fields['enable_reviews']['custom_attributes'] = array( 'required' => 1 ); } return $wcmp_advanced_fields; } add_filter( 'wcfm_product_manage_fields_advanced', 'wcfm_custom_product_manage_fields_advanced', 50, 2 );Just paste this code in your child theme’s functions.php, it will convert “Enable Reviews” required field in frontend product manager.
Please know me is this works for you or not!
Thank You
Shhiv
- AuthorPosts
- The topic ‘Product – Enable Reviews as required’ is closed to new replies.