Adding "Replacing instances of "woocommerce_price($order->order_total)" with new WC_Order::get_formatted_order_total() function.

This commit is contained in:
Brent Shepherd 2012-04-27 12:22:19 +10:00
parent 0b49818a5e
commit 6df9fff54d
4 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ function woocommerce_custom_order_columns($column) {
endif;
break;
case "total_cost" :
echo woocommerce_price($order->order_total);
echo $order->get_formatted_order_total();
break;
case "order_date" :

View File

@ -79,7 +79,7 @@ function woocommerce_pay() {
</li>
<li class="total">
<?php _e('Total:', 'woocommerce'); ?>
<strong><?php echo woocommerce_price($order->order_total); ?></strong>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</li>
<?php if ($order->payment_method_title) : ?>
<li class="method">

View File

@ -42,7 +42,7 @@ global $woocommerce;
</li>
<li class="total">
<?php _e('Total:', 'woocommerce'); ?>
<strong><?php echo woocommerce_price($order->order_total); ?></strong>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</li>
<?php if ($order->payment_method_title) : ?>
<li class="method">

View File

@ -44,7 +44,7 @@ if ($customer_orders) :
<a href="<?php echo esc_url( add_query_arg('order', $order->id, get_permalink(woocommerce_get_page_id('view_order'))) ); ?>"><?php echo $order->get_order_number(); ?></a> &ndash; <time title="<?php echo esc_attr( strtotime($order->order_date) ); ?>"><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></time>
</td>
<td class="order-shipto"><address><?php if ($order->get_formatted_shipping_address()) echo $order->get_formatted_shipping_address(); else echo '&ndash;'; ?></address></td>
<td class="order-total" width="1%"><?php echo woocommerce_price($order->order_total); ?></td>
<td class="order-total" width="1%"><?php echo $order->get_formatted_order_total(); ?></td>
<td class="order-status" style="text-align:left; white-space:nowrap;">
<?php echo ucfirst( __( $status->name, 'woocommerce' ) ); ?>
<?php if (in_array($order->status, array('pending', 'failed'))) : ?>