Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in 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’ );

    in reply to: Role Based Auto Coupon when logging in on Cart page #1044
    blkpudd
    Participant

    Just a quick follow up. It’s my child theme that’s causing the issue, I will have a go at fixing it myself as it’s probably something in functions.php that I’ve put in.

    Will let you know what I find.

    Cheers

    in reply to: Role Based Auto Coupon when logging in on Cart page #1043
    blkpudd
    Participant

    Hi,

    Checked with Storefront and it WORKED!, apologies for not doing that first.

    My theme is using Ajax I think, so do you have any tips on how I could integrate this into my theme? Happy to pay for Pro version, or your time to help sort this.

    I can send you the URL via pm, if that’s ok.

    Cheers

Viewing 3 posts - 1 through 3 (of 3 total)