Timeline for access custom customer attribute in email template
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 26, 2022 at 5:48 | comment | added | Jack | Yes it doesn't work for me as well, always getting null $customer = $block->getCustomer(); | |
Jun 16, 2021 at 12:32 | comment | added | ZealousWeb | Have you added like - prnt.sc/15lshsd ? | |
Jun 16, 2021 at 12:30 | comment | added | ZealousWeb | Which magento version you are working ? | |
Jun 14, 2021 at 9:01 | comment | added | Ravindrasinh Zala | <?php $customer = $block->getCustomer(); ?> not working please any suggestion.@ZealousWeb | |
Mar 4, 2021 at 13:49 | comment | added | ZealousWeb | Can you please approve and upvote this? | |
Mar 4, 2021 at 13:46 | comment | added | ZealousWeb | My answer will satisfy your requirement. | |
Mar 4, 2021 at 13:45 | comment | added | ZealousWeb | Yes , it won't work. I have shown you just for front end according to your requirement. | |
Mar 4, 2021 at 13:43 | comment | added | ulbiopro | Got it: It only works with template files. If I set up a template via Backend, it won't work. Can you confirm this? | |
Mar 4, 2021 at 13:40 | comment | added | ZealousWeb | Please follow all steps to make it work. I have practically checked after that i have posted here. | |
Mar 4, 2021 at 13:39 | comment | added | ZealousWeb | Yes , it will work.Your template variable customer object should be passed like this {{layout handle="custom_attribute_email" customer=$customer area="frontend"}} | |
Mar 4, 2021 at 13:17 | comment | added | ulbiopro | Does this work with Version 2.4.2? $block->getCustomer() returns always null. :( [Trying to access array offset on value of type null] | |
Mar 4, 2021 at 11:51 | history | answered | ZealousWeb | CC BY-SA 4.0 |