Open levavrohom opened 8 years ago
Is the company a customer attribute or an address attribute? If it is a customer attribute the above code should work, if it is an address attribute, then that explains why not. I don't have any advice at the moment on how to add a customer address attribute to an email template.
Thanks for your response, company is an address attribute but var customer.getAddresses()
returns an object that includes the company name is there a way to tell the template to take the company name from that array?
2016-02-12T18:09:55+00:00 DEBUG (7): Array
(
[0] => Mage_Customer_Model_Address Object
(
...
[_data:protected] => Array
(
...
[company] => mycompany
A little late to the party :) If #110 gets merged, you could use {{var billing.getCompany()}}
or the shorthand {{var billing.company}}
Thanks, working !!!
Also possible with telephone number ?
EDIT {{var shipping.getTelephone()}}
works great, thanks.
Vinai thanks for this great extension is there a way i can get the customers company name in my email notification putting
{{var customer.getCompany()}}
in the template does not get it