i cant make textarea purchase note required in woocomerce dokan enter image description here

can i use purchase note for selling keys and soft? Its safely?


I struggled with this for a while. Give this a try. It's working on my free theme

add_filter( 'woocommerce_checkout_fields' , 'your_override_checkout_fields' );

function your_override_checkout_fields( $fields ) {
 $fields['order']['order_comments']['required'] = true;
 return $fields;
  • Thank you for helping me. Where i need to paste this code? I talking about this ibb.co/Pgr1xxq – user326428 Mar 1 '19 at 15:16
  • You could add this to your theme's functions.php. – phatskat Mar 1 '19 at 16:33
  • yes but i need to make purchase note required when you add product in dokan. Not when purchase. See screenshot ibb.co/Pgr1xxq – user326428 Mar 1 '19 at 17:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.