Timeline for getAttributeText in a safe way / test if attribute exist in product first
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 25, 2021 at 9:41 | comment | added | 00-BBB | works on magento2.4 👍 | |
| Jun 1, 2016 at 20:19 | comment | added | Fabian Schmengler | I double checked, your solution is actually the same as getAttributeText() with an additional check, so it's fine. I thought it would load a single attribute from the database but apparently I was wrong. That makes our answers equally efficient. | |
| Jun 1, 2016 at 14:36 | comment | added | Ronen Ness | "This way you have no unnecessary database queries." - what do you mean? is my answer below causing extra db queries? thanks | |
| Jun 1, 2016 at 14:09 | history | answered | Fabian Schmengler | CC BY-SA 3.0 |