Quantcast
Channel: Opinion: Shopify Community - Shopify & Ecommerce Jobs
Viewing all articles
Browse latest Browse all 7259

Tom Frampton commented on Different Confirmation Emails Based on Product Selected.

$
0
0

Hey Britton,

 

Thanks for your response... its not functioning correctly at the moment and i'm sure its a mistake ive made my end. Below is the current code for the order confirmation email using your suggested code with my changes made.

 

I have also tagged my products with the 'Service' tag to trigger the changes. BUT it doesnt work. Any ideas?

 

Thank you for placing your order with {{ shop_name }}!

This email is to confirm your recent order.

  Date {{ date | date: "%m/%d/%Y" }}{% if requires_shipping and shipping_address %}

{% assign totalTags = "" %}
{% for line in line_items %}
{% capture tagList %}{{ line.product.tags | join: ", " }}{% endcapture %}
{% capture totalTags %}{{ totalTags | append: tagList }}{% endcapture %}
{% endfor %}

{% if totalTags contains 'Service' %}
<p>Please send me your audio files using your preferred digital delivery system. You can click the link below to open WeTransfer with my details already filled in.

https://www.wetransfer.com/?to=tom@masteringthemix.com

Feel free to contact me if you have any questions</p>
{% endif %}

  Shipping address
    {{ shipping_address.name }}
    {{ shipping_address.street }}
    {{ shipping_address.city }}, {{ shipping_address.province }}  {{ shipping_address.zip }}
    {{ shipping_address.country }}{% endif %}{% if billing_address %}

  Billing address
    {{ billing_address.name }}
    {{ billing_address.street }}
    {{ billing_address.city }}, {{ billing_address.province }}  {{ billing_address.zip }}
    {{ billing_address.country }}{% endif %}

{% for line in line_items %}{{ line.quantity }}x {{line.title }} for {{ line.price | money }} each {% for discount in line.applied_discounts %} ( -{{ discount.amount | money }} ){% endfor %}
{% endfor %}

{% if discounts %}Discount (code: {{ discounts.first.code }}): {{ discounts_savings | money_with_currency }}{% endif %}
Subtotal  : {{ subtotal_price | money_with_currency  }}{% for tax_line in tax_lines %}
{{ tax_line.title }}       : {{ tax_line.price | money_with_currency  }}{% endfor %}{% if requires_shipping %}
Shipping  : {{ shipping_price | money_with_currency }}{% endif %}
Total     : {{ total_price | money_with_currency }}


Viewing all articles
Browse latest Browse all 7259

Trending Articles