|
get_order_number() ) ); ?>
|
|
get_status() ) ); ?>
|
get_formatted_order_total(), $item_count ) );
?>
|
needs_payment() && $order->get_id() === $subscription->get_last_order( 'ids', 'any' ) ) {
$actions['pay'] = array(
'url' => $order->get_checkout_payment_url(),
'name' => esc_html_x( 'Pay', 'pay for a subscription', 'woocommerce-subscriptions' ),
);
}
if ( in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) {
$redirect = wc_get_page_permalink( 'myaccount' );
if ( wcs_is_view_subscription_page() ) {
$redirect = $subscription->get_view_order_url();
}
$actions['cancel'] = array(
'url' => $order->get_cancel_order_url( $redirect ),
'name' => esc_html_x( 'Cancel', 'an action on a subscription', 'woocommerce-subscriptions' ),
);
}
$actions['view'] = array(
'url' => $order->get_view_order_url(),
'name' => esc_html_x( 'View', 'view a subscription', 'woocommerce-subscriptions' ),
);
$actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order );
if ( $actions ) {
foreach ( $actions as $key => $action ) {
echo wp_kses_post( '' . esc_html( $action['name'] ) . '' );
}
}
?>
|