Support » Plugin: Repeat Order for WooCommerce » Create reorder from hold status

  • Resolved lorenzo78

    (@lorenzo78)


    Is there any way to create a woo commerce reorder from orders that status are on-hold in and not complete.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter lorenzo78

    (@lorenzo78)

    Is it something custom you would have to pay for? Thanks

    Plugin Author Ulf Schönefeld

    (@uschoene)

    Hi @lorenzo78,

    we are currently developing an add-on for further order statuses – but this is not final and we can’t offer it for free. As soon as a release date is fixed we will inform you in the usual way. We hope for your support and understanding and hope you are not losing at this point.

    Best regards,
    Polyres-Team

    /**
     * Repeat Order for WooCommerce – show "Order Again" button for all statuses.
     *
     * @see https://wordpress.org/plugins/repeat-order-for-woocommerce/
     *
     * @hooked woocommerce_valid_order_statuses_for_order_again
     *
     * @param string[] $order_statuses The existing set of statuses whose orders the Order Again button will be shown beside.
     *
     * @return string[]
     */
    function allow_all_order_statuses( array $order_statuses ): array {
    
    	$unprefixed_order_statuses = array_map(
    		function( string $prefixed_status ) {
    			return str_replace( 'wc-', '', $prefixed_status );
    		},
    		array_keys( wc_get_order_statuses() )
    	);
    
    	return $unprefixed_order_statuses;
    }
    add_filter( 'woocommerce_valid_order_statuses_for_order_again', 'allow_all_order_statuses' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create reorder from hold status’ is closed to new replies.