How to get total order price separetly
-
Hi,
How can I get order total price separetly in PDF invoice? I need to input it to the different place.
Here is the code:
<?php foreach ( $this->get_woocommerce_totals() as $key => $total ) : ?> <tr class="<?php echo esc_attr( $key ); ?>"> <th class="description"><?php echo $total['label']; ?></th> <td class="price"><span class="totals-price"><?php echo $total['value']; ?></span></td> </tr> <?php endforeach; ?>
Total price is inside foreach, need to extract it?
Best regards,
Max
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How to get total order price separetly’ is closed to new replies.