From: Chuck Scott Date: Thu, 4 Feb 2016 20:43:20 +0000 (-0500) Subject: Renamed my-orders.php to ...OLD so WooCommerce will use updated file. X-Git-Tag: v1.0.12^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ab4fcc537e06d1b61809c0e639e8a68c7c46da18;p=WP-Themes%2FTomsMomsCookies.git Renamed my-orders.php to ...OLD so WooCommerce will use updated file. --- diff --git a/style.css b/style.css index bb27243..22ac217 100755 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: Tom's Mom's Cookies Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme made for Tom's Mom's Cookies. -Version: 1.0.11 +Version: 1.0.12 */ diff --git a/woocommerce/myaccount/my-orders.php b/woocommerce/myaccount/my-orders.php deleted file mode 100755 index 178213d..0000000 --- a/woocommerce/myaccount/my-orders.php +++ /dev/null @@ -1,99 +0,0 @@ - $order_count, - 'meta_key' => '_customer_user', - 'meta_value' => get_current_user_id(), - 'post_type' => wc_get_order_types( 'view-orders' ), - 'post_status' => array_keys( wc_get_order_statuses() ) -) ) ); - -if ( $customer_orders ) : ?> - -

- - - - - - - - - - - - - - populate( $customer_order ); - $item_count = $order->get_item_count(); - - ?> - - - - - - - -
 
- - #get_order_number(); ?> - - - - - get_status() ); ?> - - get_formatted_order_total(), $item_count ); ?> - - get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $order ) ) ) { - $actions['pay'] = array( - 'url' => $order->get_checkout_payment_url(), - 'name' => __( 'Pay', 'woocommerce' ) - ); - } - - if ( in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { - $actions['cancel'] = array( - 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), - 'name' => __( 'Cancel', 'woocommerce' ) - ); - } - - $actions['view'] = array( - 'url' => $order->get_view_order_url(), - 'name' => __( 'View', 'woocommerce' ) - ); - - $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ); - - if ($actions) { - foreach ( $actions as $key => $action ) { - echo '' . esc_html( $action['name'] ) . ''; - } - } - ?> -
- - diff --git a/woocommerce/myaccount/my-orders.php.OLD b/woocommerce/myaccount/my-orders.php.OLD new file mode 100755 index 0000000..178213d --- /dev/null +++ b/woocommerce/myaccount/my-orders.php.OLD @@ -0,0 +1,99 @@ + $order_count, + 'meta_key' => '_customer_user', + 'meta_value' => get_current_user_id(), + 'post_type' => wc_get_order_types( 'view-orders' ), + 'post_status' => array_keys( wc_get_order_statuses() ) +) ) ); + +if ( $customer_orders ) : ?> + +

+ + + + + + + + + + + + + + populate( $customer_order ); + $item_count = $order->get_item_count(); + + ?> + + + + + + + +
 
+ + #get_order_number(); ?> + + + + + get_status() ); ?> + + get_formatted_order_total(), $item_count ); ?> + + get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $order ) ) ) { + $actions['pay'] = array( + 'url' => $order->get_checkout_payment_url(), + 'name' => __( 'Pay', 'woocommerce' ) + ); + } + + if ( in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { + $actions['cancel'] = array( + 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), + 'name' => __( 'Cancel', 'woocommerce' ) + ); + } + + $actions['view'] = array( + 'url' => $order->get_view_order_url(), + 'name' => __( 'View', 'woocommerce' ) + ); + + $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ); + + if ($actions) { + foreach ( $actions as $key => $action ) { + echo '' . esc_html( $action['name'] ) . ''; + } + } + ?> +
+ +