Repository Forums Support WooCommerce Extended Coupon Features PRO Role Based Auto Coupon when logging in on Cart page Reply To: Role Based Auto Coupon when logging in on Cart page

#1045
blkpudd
Participant

Fixed… kinda obvious: I had used the following to hide coupon details on the checkout page. Took this out and it worked fine.

// hide coupon field on checkout page

function hide_coupon_field_on_checkout( $enabled ) {
if ( is_checkout() && current_user_can(‘wholesale’) ) {
$enabled = false;
}
return $enabled;
}
add_filter( ‘woocommerce_coupons_enabled’, ‘hide_coupon_field_on_checkout’ );