{* Template: after_purchase.html Description: Email send x-hours after a purchase has been made. Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{* --------------- Currencies --------------- *}> <{if $settings.general.thousand == 'point'}> <{capture name='thousand'}>.<{/capture}> <{elseif $settings.general.thousand == 'comma'}> <{capture name='thousand'}>,<{/capture}> <{else}> <{capture name='thousand'}> <{/capture}> <{/if}> <{if $settings.general.decimal == 'point'}> <{capture name='decimal'}>.<{/capture}> <{elseif $settings.general.decimal == 'comma'}> <{capture name='decimal'}>,<{/capture}> <{else}> <{capture name='decimal'}> <{/capture}> <{/if}> <{if $settings.currency.display}> <{assign var="currency" value=$settings.currency.display}> <{else}> <{assign var="currency" value="kr."}> <{/if}> <{capture name="products_html"}> <{include file="mails/email.order.products.html" products=$order->getProducts() show_order_summary=false}> <{/capture}> <{capture name="recommendations_html"}> <{assign var="products" value=$order->getProducts()}> <{assign var="items" value=$webshop->getAfterPurchase($products)}> <{include file="mails/email.order.recommendations.html" products=$items}> <{/capture}> <{assign var="products_list" value=$smarty.capture.products_html}> <{assign var="recommendation_list" value=$smarty.capture.recommendations_html}> <{assign var="company_name" value=$settings.company.name}> <{assign var="company_phone" value=$settings.company.phone}> <{assign var="company_email" value=$settings.company.email}> <{assign var="customer_name" value=$order->getOrderName()}> <{assign var="order_number" value=$order->getOrderId()}> <{capture name="email_subject"}> <{t}>Some time ago you purchased<{/t}> <{/capture}> <{capture name="email_content"}>
<{t x=$customer_name}>Hi {x}<{/t}>
<{t}>Some time ago you purchased:<{/t}>
<{$smarty.capture.products_html}><{t}>Therefore, we thought it might be interesting with:<{/t}>
<{$smarty.capture.recommendations_html}><{t}>Please get in touch if you have questions, or if we can help in any way.<{/t}>
<{t}>Best regards<{/t}>
<{$company_name}>
<{/capture}> <{assign var="email_subject" value=$settings.emails.after_purchase_mail_subject|default:$smarty.capture.email_subject}> <{assign var="email_content" value=$settings.emails.after_purchase_mail_content|default:$smarty.capture.email_content}> <{assign var="find" value='||'|explode:"[company_name]||[company_phone]||[company_email]||[customer_name]||[products_list]||[recommendation_list]"}> <{assign var="repl" value='||'|explode:"$company_name||$company_phone||$company_email||$customer_name||$products_list||$recommendation_list"}> <{if $subject}> <{$email_subject|replace:$find:$repl}> <{else}> <{include file="mails/email.wrapper.start.html"}> <{$email_content|replace:$find:$repl}> <{include file="mails/email.wrapper.end.html"}> <{/if}>