Timeline for Magento 2 : How to handle array values in custom email templates?
Current License: CC BY-SA 3.0
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 10, 2020 at 0:00 | history | tweeted | twitter.com/StackMagento/status/1248400499461591043 | ||
| May 17, 2019 at 12:37 | vote | accept | Ramkishan Suthar | ||
| Sep 19, 2016 at 9:41 | history | edited | MeenakshiSundaram R | CC BY-SA 3.0 | added 100 characters in body |
| Sep 19, 2016 at 9:27 | history | edited | Ramkishan Suthar | CC BY-SA 3.0 | added 731 characters in body |
| Sep 19, 2016 at 7:15 | answer | added | MeenakshiSundaram R | timeline score: 8 | |
| Sep 19, 2016 at 6:50 | comment | added | Ramkishan Suthar | Mainly i want to print all the values in email template | |
| Sep 19, 2016 at 6:50 | comment | added | Ramkishan Suthar | i am passing this $productName to my email_template.html | |
| Sep 19, 2016 at 6:49 | comment | added | Ramkishan Suthar | foreach($items as $item) { $productName[]= $item->getSku(); } | |
| Sep 19, 2016 at 6:44 | comment | added | MeenakshiSundaram R | could you give example array value of productName | |
| Sep 19, 2016 at 6:43 | comment | added | Ramkishan Suthar | i mean to say if i have more than one element in productName array than according to your suggestion it will print only first value in email template. how could i print another values ? | |
| Sep 19, 2016 at 6:39 | comment | added | MeenakshiSundaram R | you want to loop the values? | |
| Sep 19, 2016 at 6:38 | comment | added | Ramkishan Suthar | i think it will print only one value. suppose i have more than one element in array than what will i do ? | |
| Sep 19, 2016 at 6:35 | comment | added | MeenakshiSundaram R | try {{var productName.some}} here is some is "array key". eg: array([some] => Your product Name) | |
| Sep 19, 2016 at 5:48 | history | edited | Ramkishan Suthar | CC BY-SA 3.0 | deleted 9 characters in body |
| S Sep 19, 2016 at 5:41 | history | suggested | Payal Patel | CC BY-SA 3.0 | Improved Formatting |
| Sep 19, 2016 at 5:36 | review | Suggested edits | |||
| S Sep 19, 2016 at 5:41 | |||||
| S Sep 19, 2016 at 5:33 | history | suggested | Bilal Usean | CC BY-SA 3.0 | code format and tagging to appropriate tags |
| Sep 19, 2016 at 5:28 | review | Suggested edits | |||
| S Sep 19, 2016 at 5:33 | |||||
| Sep 19, 2016 at 5:25 | history | asked | Ramkishan Suthar | CC BY-SA 3.0 |