Form fields selected controlling content on 'Thank you' page

If a product order form is processed, it is possible to have the ‘thank you’ page show content based on the product that was purchased? Similar to how we can customise content on a Workflow based on what was submitted in the form.

Yes, we can use the {{this.order}} object, on the checkout confirmation/receipt page in just the same way as in the autoresponder.

OK great! I don’ think {{this.order}} is available to test but do you think we would be able to target the product purchased in an IF statement to display certain content.

Sure, could do something like this:

{% for product in order.items %} <!-- TO LOOP PRODUCT ORDER LINES -->
{% if product.SKUCode == "12345" %} <!-- YOUR CUSTOM CONDITION -->
    <!-- YOUR CUSTOM CONTENT -->
{% endif %}
{% endfor %}
2 Likes