|
@@ 137-141 (lines=5) @@
|
| 134 |
|
$format_decimal = array( 'subtotal', 'subtotal_tax', 'total', 'total_tax', 'tax_total', 'shipping_tax_total' ); |
| 135 |
|
|
| 136 |
|
// Format decimal values. |
| 137 |
|
foreach ( $format_decimal as $key ) { |
| 138 |
|
if ( isset( $data[ $key ] ) ) { |
| 139 |
|
$data[ $key ] = wc_format_decimal( $data[ $key ], $this->request['dp'] ); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
// Add meta, SKU and PRICE to products. |
| 144 |
|
if ( is_callable( array( $item, 'get_product' ) ) ) { |
|
@@ 204-206 (lines=3) @@
|
| 201 |
|
$format_line_items = array( 'line_items', 'tax_lines', 'shipping_lines', 'fee_lines', 'coupon_lines' ); |
| 202 |
|
|
| 203 |
|
// Format decimal values. |
| 204 |
|
foreach ( $format_decimal as $key ) { |
| 205 |
|
$data[ $key ] = wc_format_decimal( $data[ $key ], $this->request['dp'] ); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
// Format date values. |
| 209 |
|
foreach ( $format_date as $key ) { |