Adding "Replacing instances of "woocommerce_price($order->order_total)" with new WC_Order::get_formatted_order_total() function.
This commit is contained in:
parent
0b49818a5e
commit
6df9fff54d
|
@ -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" :
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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> – <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 '–'; ?></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'))) : ?>
|
||||
|
|
Loading…
Reference in New Issue