Page 1 of 1

Echo Company Field in Order Confirmation Email ?

Posted: Sat Apr 01, 2017 3:36 am
by enhancedvision
Hi All,
I have looked around with no luck on what I am assuming is a very simple thing. When the order confirmation email is sent out it is missing the Company entry entered by the customer in the shipping information. I have tried adding

Code: Select all

<?php echo $shipping_company; ?>
and

Code: Select all

<?php echo $company; ?>
but neither work. I receive an error in the order email saying Notice: Undefined variable: shipping_company

Any help on how I can get the company field to display with the Shipping Address on the order email would be really appreciated.

Thank you.

Re: Echo Company Field in Order Confirmation Email ?

Posted: Thu Apr 06, 2017 1:53 pm
by Jsf
If you want to use variable in templates files, first you should setup it in controller file:

$this->data['shipping_company'] = $some_variable;