{extends file="email-layout.tpl"} {* Do not provide a "Open in browser" link *} {block name="browser"}{/block} {* No pre-header *} {block name="pre-header"}{/block} {* Subject *} {block name="email-subject"}{intl l="Your order confirmation NÂș %ref" ref={$order_ref}}{/block} {* Title *} {block name="email-title"}{intl l="Thank you for your order!"}{/block} {* Content *} {block name="email-content"} {loop name="order.invoice" type="order" id=$order_id customer="*"} {loop name="currency.order" type="currency" id=$CURRENCY} {assign var="orderCurrencyIsoCode" value=$ISOCODE} {/loop} {loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"} {assign var="customerRef" value=$REF} {/loop} {assign var="module_cnc" value=""} {loop name="module_cnc_loop" type="module" code="ClickAndCollect"} {assign var="module_cnc" value=$ID} {/loop} {loop type="scheduled_deliveries" name="order-schedule-loop" order_id=$order_id} {assign var="planifDebut" value=$START_DATE} {assign var="planifFin" value=$END_DATE} {assign var="planifPlaceId" value=$PLACE_ID} {/loop} {hook name="email-html.order-confirmation.before-address" order=$order_id} {intl l="Here are the details of your purchase:"}

{if $planifPlaceId neq ''} {intl l="Order to withdraw" d="pointretrait"}
{loop type="pdr_places" name="places-loop" id=$planifPlaceId}

{$TITLE}
{$ADDRESS1} {if $ADDRESS2 neq ''} {$ADDRESS2} {/if}

{$ZIPCODE} {$CITY}

{/loop} {else} {intl l="Delivery address:"}
{format_address order_address=$DELIVERY_ADDRESS locale=$locale} {ifhook rel="email-html.order-confirmation.delivery-address"} {hook name="email-html.order-confirmation.delivery-address" module={$DELIVERY_MODULE} order=$order_id} {/ifhook} {/if}
{intl l="Billing address:"}
{format_address order_address=$INVOICE_ADDRESS locale=$locale}
{if $planifPlaceId neq ''} {if {order attr="delivery_module"} eq {$module_cnc}} {intl l="Warning withdrawal date" d="planificationlivraison" date={format_date date=$planifDebut output="date" format="d/m/Y"} } {else} {intl l="Warning withdrawal date complete" d="planificationlivraison" date={format_date date=$planifDebut output="date" format="d/m/Y"} heure_debut={format_date date=$planifDebut output="time" format="H\hi"} heure_fin={format_date date=$planifFin output="time" format="H\hi"} } {/if} {/if} {hook name="email-html.order-confirmation.after-address" order=$order_id}

{intl l="Order Total:"} {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
{intl l="Order Number:"} {$REF}
{intl l="Paid With:"} {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}
{intl l="Purchase Date:"} {format_date date=$CREATE_DATE output="datetime"}
{intl l="Delivery method:"} {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}{$}

{hook name="email-html.order-confirmation.before-products" order=$order_id} {$subtotal = 0} {loop type="order_product" name="order-products" order=$ID} {if $WAS_IN_PROMO == 1} {assign "realPrice" $PROMO_PRICE} {assign "realTax" $PROMO_PRICE_TAX} {assign "realTaxedPrice" $TAXED_PROMO_PRICE} {else} {assign "realPrice" $PRICE} {assign "realTax" $PRICE_TAX} {assign "realTaxedPrice" $TAXED_PRICE} {/if} {hook name="email-html.order-confirmation.order-product" order="{$order_id}" order_product="{$ID}"} {/loop} {if $DISCOUNT > 0} {/if}
{intl l="What You Purchased"} {intl l="Price in"} {$orderCurrencyIsoCode}
{$TITLE} ({$REF}{if $REF != $PRODUCT_SALE_ELEMENTS_REF}, {$PRODUCT_SALE_ELEMENTS_REF}{/if}) {ifloop rel="combinations"}
{loop type="order_product_attribute_combination" name="combinations" order_product=$ID} * {$ATTRIBUTE_TITLE}: {$ATTRIBUTE_AVAILABILITY_TITLE} {/loop} {/ifloop} {hook name="email-html.order-confirmation.product-list" order=$order_id order_product=$ID}
{$QUANTITY} x {format_money number=$realTaxedPrice currency_id=$CURRENCY} {$subtotal = $subtotal + $realTaxedPrice * $QUANTITY}
{intl l="Subtotal"} {format_money number=$subtotal currency_id=$CURRENCY}
{intl l="Discount"} {format_money number=$DISCOUNT currency_id=$CURRENCY}
{intl l="Total"} {format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY}
{intl l="Shipping:"} {format_money number=$POSTAGE currency_id=$CURRENCY}
{intl l="Order Total"} {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
{/loop} {hook name="email-html.order-confirmation.after-products" order=$order_id}
{ifhook rel="email-html.order-confirmation.footer"} {hook name="email-html.order-confirmation.footer" order=$order_id} {/ifhook} {elsehook rel="email-html.order-confirmation.footer"}

{intl l="View this order in your account at %shop_name" shop_name={config key="store_name"}}


{intl l="Support"}

{intl l='For any questions, or concerns, feel free to contact %mail.' mail={config key="store_email"}}

{intl l="Our contact us at:"}
{config key="store_name"}
{config key="store_address1"}
{config key="store_zipcode"} {config key="store_city"}


{intl l="Thanks"}
{/elsehook} {/block}