How do I show different text based on quantity in the e-mail fulfillment?

Sometimes, you may want to show different text or quantity information in the e-mail fulfillment, Products and Pages -> (product) -> Edit (E-mail Fulfillment) -or- Add (Fulfillment Actions if you haven't create one yet, that goes out to the customers. To do this, you can do some variation of this in the e-mail:

<choose><when test="#{orderItem.quantity eq 1}">quantity one text</when><otherwise>quantity greater than one text</otherwise></choose>

If you wanted to mention the quantity elsewhere in the e-mail fulfillment, you can use the variable #{orderItem.quantity}

Have more questions? Submit a request

Comments

Powered by Zendesk