I'm trying to customize my Woocommerce Emails and I created already a html template for it, which already works.
The Problem that I have is that it's not displaying the woocommerce variable like for example:
- this way
{order_number}
- or this way
{order_shipping_address}
I always have to put them like this:
<?php echo $order->billing_last_name; ?>
Below is a snippet how the HTML Code looks like:
<span data-key="1468270_order_number">Bestellnr.:</span> #<?php echo $order->id; ?>
So it's plain html file with this php variable at the places where I need them. I put the html file into Woocommerce > Settings > E-Mails > New Order
Do I have to wrap it all into a php file or how do I get variables like {order_number}
working. On this related Woocommerce documentation there are a lot of Variables without, but I can't make them work.
How can I use them?