Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if fulfillment.item_count == item_count %}
- {% capture shipment_name %}Votre commande est{% endcapture %}
- {% elsif fulfillment.item_count > 1 %}
- {% if fulfillment_status == 'fulfilled' %}
- {% capture shipment_name %}Les derniers articles de votre commande sont{% endcapture %}
- {% else %}
- {% capture shipment_name %}Certains articles de votre commande sont{% endcapture %}
- {% endif %}
- {% else %}
- {% if fulfillment_status == 'fulfilled' %}
- {% capture shipment_name %}Le dernier article de votre commande est{% endcapture %}
- {% else %}
- {% capture shipment_name %}Un arcticle de votre commande est{% endcapture %}
- {% endif %}
- {% endif %}
- {% capture email_title %}{{ shipment_name }} en route{% endcapture %}
- {% capture email_body %}{{ shipment_name }} en route. Suivez votre envoi pour voir l'état de la livraison.{% endcapture %}
- {% capture email_emphasis %}Date de livraison estimée: <strong>{{fulfillment.estimated_delivery_at | date: "%B %d, %Y"}}</strong>{% endcapture %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>{{ email_title }}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="viewport" content="width=device-width">
- <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
- <style>
- .button__cell { background: {{ shop.email_accent_color }}; }
- a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
- </style>
- </head>
- <body>
- <table class="body">
- <tr>
- <td>
- <table class="header row">
- <tr>
- <td class="header__cell">
- <center>
- <table class="container">
- <tr>
- <td>
- <table class="row">
- <tr>
- <td class="shop-name__cell">
- {% if shop.email_logo_url %}
- <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
- {% else %}
- <h1 class="shop-name__text">
- <a href="{{shop.url}}">{{ shop.name }}</a>
- </h1>
- {% endif %}
- </td>
- <td class="order-number__cell">
- <span class="order-number__text">
- Commande {{ order_name }}
- </span>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </center>
- </td>
- </tr>
- </table>
- <table class="row content">
- <tr>
- <td class="content__cell">
- <center>
- <table class="container">
- <tr>
- <td>
- <h2>{{ email_title }}</h2>
- <p>{{ email_body }}</p>
- {% if fulfillment.estimated_delivery_at %}
- <p>{{ email_emphasis }}</p>
- {% endif %}
- {% if order_status_url %}
- <table class="row actions">
- <tr>
- <td class="actions__cell">
- <table class="button main-action-cell">
- <tr>
- <td class="button__cell"><a href="{{ order_status_url }}" class="button__text">Voir votre commande</a></td>
- </tr>
- </table>
- {% if shop.url %}
- <table class="link secondary-action-cell">
- <tr>
- <td class="link__cell"><a href="{{ shop.url }}" class="link__text"><span class='or'>ou</span> Visiter notre boutique</a></td>
- </tr>
- </table>
- {% endif %}
- </td>
- </tr>
- </table>
- {% else %}
- {% if shop.url %}
- <table class="row actions">
- <tr>
- <td class="actions__cell">
- <table class="button main-action-cell">
- <tr>
- <td class="button__cell"><a href="{{ shop.url }}" class="button__text">Visiter notre boutique</a></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- {% endif %}
- {% endif %}
- </td>
- </tr>
- </table>
- </center>
- </td>
- </tr>
- </table>
- <table class="row section">
- <tr>
- <td class="section__cell">
- <center>
- <table class="container">
- <tr>
- <td>
- <h3>Articles commandés </h3>
- </td>
- </tr>
- </table>
- <table class="container">
- <tr>
- <td>
- <table class="row">
- {% for line in fulfillment.fulfillment_line_items %}
- {% if item_count == 1 %}
- {% assign columnWrapperClass = 'order-list__item--single' %}
- {% elsif forloop.first == true %}
- {% assign columnWrapperClass = 'order-list__item--first' %}
- {% elsif forloop.last == true %}
- {% assign columnWrapperClass = 'order-list__item--last' %}
- {% else %}
- {% assign columnWrapperClass = '' %}
- {% endif %}
- <tr class="order-list__item {{columnWrapperClass}}">
- <td class="order-list__item__cell">
- <table>
- <td>
- {% if line.line_item.image %}
- <img src="{{ line.line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
- {% endif %}
- </td>
- <td class="order-list__product-description-cell">
- {% if line.line_item.product.title %}
- {% assign line_title = line.line_item.product.title %}
- {% else %}
- {% assign line_title = line.line_item.title %}
- {% endif %}
- <span class="order-list__item-title">{{ line_title }} × {{ line.line_item.quantity }}</span><br/>
- {% if line.line_item.variant.title != 'Default Title' %}
- <span class="order-list__item-variant">{{ line.line_item.variant.title }}</span>
- {% endif %}
- <br/>
- {% if fulfillment.tracking_number %}
- {% if fulfillment.tracking_url %}
- Numéro de suivi: <a href="{{ fulfillment.tracking_url }}" alt="Tracking url">{{ fulfillment.tracking_number }}</a>
- {% elsif fulfillment.tracking_number %}
- Numéro de suivi: {{ fulfillment.tracking_number }}
- {% endif %}
- {% endif %}
- </td>
- </table>
- </td>
- </tr>{% endfor %}
- </table>
- </td>
- </tr>
- </table>
- </center>
- </td>
- </tr>
- </table>
- <table class="row footer">
- <tr>
- <td class="footer__cell">
- <center>
- <table class="container">
- <tr>
- <td>
- <p class="disclaimer__subtext">Si vous avez des questions répondez à cet email ou contactez nous à l'adresse suivante <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
- </td>
- </tr>
- </table>
- </center>
- </td>
- </tr>
- </table>
- <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
- </td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement