Product – Enable Reviews as required

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM – Ultimate Product – Enable Reviews as required

Viewing 1 reply thread
  • Author
    Posts
    • #16694
      Brad Z
      Guest

      Thank 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

    • #16696
      WCFM Forum
      Member

      Hi,

      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

Viewing 1 reply thread
  • The topic ‘Product – Enable Reviews as required’ is closed to new replies.