0

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?

closed as off-topic by Jacob Peattie, Nathan Johnson, rudtek, Dave Romsey, Howdy_McGee Mar 13 at 2:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1

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 at 15:16
  • You could add this to your theme's functions.php. – phatskat Mar 1 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 at 17:07

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