Undefined constant tax causing warning message in emails
-
Hi, i was just wondering if anyone would be able to help me out, the site that i am working on is displaying a warning on both admin and customer emails. It states that the use of undefined constant tax will throw an error however, i cannot seem to locate what is causing the issue. Many thanks.
These are the lines in the email-order-details.php file:
62 | <?php
63 | $item_totals = $order->get_order_item_totals();
64 |
65 | if ( $item_totals ) {
66 | $i = 0;
67 | foreach ( $item_totals as $total ) {
68 | $i++;
69 | ?>`Warning: Use of undefined constant tax – assumed ‘tax’ (this will throw an Error in a future version of PHP) in /home/customer/www/website/public_html/wp-content/themes/website/resources/views/woocommerce/emails/email-order-details.php on line 69
- The topic ‘Undefined constant tax causing warning message in emails’ is closed to new replies.