Question

I see in the admin panel this code {{depend prefix}} {{/depend}}:

HTML address template

What does it mean?

Was it helpful?

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
scroll top