• Resolved cfirsttech

    (@cfirsttech)


    Hello,

    I am attempting to use a custom order status which preserves the ‘Customer Payment Page’ link. Similar to the the default order status of ‘Pending Payment’.

    When creating a new custom status there is an option for ‘Paid Status’ which is disabled. I was expecting this to behave similar to that of ‘Pending Payment’ if it is disabled but it seems to have no effect and is treated like a ‘Completed’ status?

    How might I use your plugin to create a status which preserves the payment link?

Viewing 2 replies - 1 through 2 (of 2 total)
  • luizdevplugins

    (@luizbvplugins)

    Hello, we intend to create an option on a future release. In the meanwhile you can add a custom code in your theme functions.php file:

    replace the “my-custom-status-slug” with the slug you created

    add_filter( 'woocommerce_valid_order_statuses_for_payment', 'bp_valid_order_statuses_for_payment', 10, 2 );
    function bp_valid_order_statuses_for_payment( $statuses, $order ) {
    	$statuses[] = 'my-custom-status-slug';
    	return $statuses;
    }

    As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new topic, if you continue encountering issues or reopen this topic; we’d be happy to assist. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customer Payment Page link missing when Paid Status option disabled’ is closed to new replies.