I need to add custom variable to new order E-mail.
This variables are custom customer attributes.
Thanks in advance!
Like any other variable that you are using you can ask variables from your object so if you do in php
<?php echo $customerObject->getMyCustomVariable();?>
you would do in template
{{var customerObject.getMyCustomVariable()}}
And as in php side you have to be sure that this attribute exists in your object and is included in collection
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With