<{* Template: in_stock_mail.html Description: Email send when a product is back in stock Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{* variables *}> <{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="product_name" value=$product->getName()|escape}> <{assign var="product_url" value=$product->getRemoteUrl()|escape}> <{capture name="email_subject"}> <{t x=$product->getName()}>{x} is now back in stock 📦<{/t}> <{/capture}> <{capture name="email_content"}>

<{t}>Great news!<{/t}>

<{t x=$product->getName()}>We've got {x} back in stock.<{/t}>

<{t}>You're the first to be notified because you signed up for notifications.<{/t}>

<{t}>You may order it here:<{/t}>

<{$product->getName()|escape}>

<{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.in_stock_mail_subject|default:$smarty.capture.email_subject}> <{assign var="email_content" value=$settings.emails.in_stock_mail_content|default:$smarty.capture.email_content}> <{* find & replace *}> <{assign var="find" value='||'|explode:"[company_phone]||[company_email]||[product_name]||[product_url]"}> <{assign var="repl" value='||'|explode:"$company_phone|| $company_email||$product_name||$product_url"}> <{* view *}> <{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}>