Vinai / customer-activation

Magento extension which makes it impossible for a customer to log in until the account has been activated by the administrator.
120 stars 59 forks source link

Get customer company name in email notifacation #95

Open levavrohom opened 8 years ago

levavrohom commented 8 years ago

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

Vinai commented 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.

levavrohom commented 8 years ago

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

markvds commented 7 years ago

A little late to the party :) If #110 gets merged, you could use {{var billing.getCompany()}} or the shorthand {{var billing.company}}

w00druff commented 7 years ago

Thanks, working !!! Also possible with telephone number ? EDIT {{var shipping.getTelephone()}} works great, thanks.