2

I have created some custom Customer attribute and added them in Customer registration form, everything is fine, except that when a successful registration email goes I want to send those attribute values in email, I am able to send customer name in email fine using

$customer.name

and for custom attributes I tried:

{{var $customer.getCustomAttribute('attribute_code')}}

also tried this:

{{trans "%bname" banme=$customer.getCustomAttribute('attribute_code')}}

but always getting blank value.

==========================

Managed to get the values directly using

{{var customer.customattributecode}}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.