what does the 'depend' key word mean?
-
12-12-2019 - |
Question
I see in the admin panel this code {{depend prefix}} {{/depend}}
:
What does it mean?
Solution
The {{depend}}
condition checks whether there is data for the variable to output.
For instance: If the customer hasn't entered any prefix
details then there will be no data in the database. The {{depend}}
condition recognizes this and makes sure that in this case the prefix
variable isn't displayed in the email template.
To learn more about this click here and read Marius' answer for this question.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange