• Resolved globalimageusa

    (@globalimageusa)


    Hi Support,

    When we view a previous order in My Account -> Order History, the Order Again button is not displayed for orders marked as “Picked Up” status, only displayed for ‘Shipped”.
    Is there a way to fix this for the Order Again button to display for “Picked Up” as well?

    Cheers
    Mark

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter globalimageusa

    (@globalimageusa)

    Hi Support.

    I have been researching this further!
    I beleive the Picked-Up status “wc-pickup” needs to be added to the following php file.
    wc-template-functions.php

    Code:

    if ( ! function_exists( ‘woocommerce_order_again_button’ ) ) {

    /**
    * Display an ‘order again’ button on the view order page.
    *
    * @param object $order Order.
    */
    function woocommerce_order_again_button( $order ) {
    if ( ! $order || ! $order->has_status( apply_filters( ‘woocommerce_valid_order_statuses_for_order_again’, array( ‘completed’ ) ) ) || ! is_user_logged_in() ) {
    return;
    }

    wc_get_template(
    ‘order/order-again.php’,
    array(
    ‘order’ => $order,
    ‘order_again_url’ => wp_nonce_url( add_query_arg( ‘order_again’, $order->get_id(), wc_get_cart_url() ), ‘woocommerce-order_again’ ),
    )
    );
    }
    }

    But when I add the ‘wc-pickup’ status, the site crashes.

    Any help would be appreciated.

    Cheers

    Plugin Author Zorem

    (@zorem)

    Hi, thanks, we already fixed that, we will release later on today a version with a fix for the order again buttons
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Order Again Button for Picked Up Status’ is closed to new replies.