Disable autofill checkout fields for a specific user role
-
We use WC for the standard e-commerce solution. But now we are having our sales reps enter their order through WC as well. We want to avoid having the previous order autofill in the checkout page, but only for our sales reps. So we created a sales_rep user role, and we would like to disable autofill in the checkout fields.
I am aware of this snippet:
add_filter( 'woocommerce_checkout_update_customer_data', '__return_false' );
But I am not aware of how to make it specific to only the sales reps. I still want our e-commerce users to have their fields autofilled.
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disable autofill checkout fields for a specific user role’ is closed to new replies.