Post by enhancedvision » Sat Apr 01, 2017 3:36 am

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.


Posts

Joined
Wed Dec 10, 2014 12:14 am

Post by Jsf » Thu Apr 06, 2017 1:53 pm

If you want to use variable in templates files, first you should setup it in controller file:

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

User avatar
Jsf
New member

Posts

Joined
Sun Jan 26, 2014 4:08 am
Who is online

Users browsing this forum: No registered users and 26 guests