๐๏ธ Overview
This article describes the scenario where you want to add custom text to the Shopify order confirmation email when the order includes a BookThatApp (BTA) product.
๐ก Tip: You can use the following Liquid code to check whether an order contains a BTA product:
{% assign bta = 'false' %}
{% for line in subtotal_line_items %}
{% if line.product.metafields.bookthatapp.config %}
{% assign bta = 'true' %}
{% endif %}
{% endfor %}
{% if bta == 'true' %}
<p>this note will only be shown if a BookThatApp product is in the order</p>
{% endif %}
Comments
0 comments
Article is closed for comments.