Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › First purchase only coupon issues

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20711
    arjay
    Participant

    Hi,

    I created First purchase only coupon but it’s not working on custom order statuses.
    I have added this filter but still now working.

    add_filter( ‘woocommerce_order_is_paid_statuses’, ‘xxx_paid_is_paid_status’ );

    function xxx_paid_is_paid_status( $statuses ) {
    $statuses[] = ‘wc-finalised’;
    return $statuses;
    }

    Any workaround for this?

    #20712
    arjay
    Participant

    Nevermind, I found this

    add_filter( ‘wjecf_first_order_statuses_to_check’, function( $order_statuses ) {
    return array_merge( $order_statuses, [ ‘wc-finalised’] );
    }, 10, 1 );

    #20716
    Soft79
    Keymaster

    Great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.