QuestionQ38

VerifiedAdobe Experience Manager as a Cloud Service

An Adobe Commerce developer must add a conditional static note based on whether an order is virtual.

Which option should the developer use to add the conditional text to the email template?

Explanation

Adobe Commerce email templates use {{if variable}}, {{else}}, and {{/if}} for conditional content. The condition must reference the email-template variable as order_data.is_not_virtual, and the text can be localized with the {{trans "..."}} directive.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!