{* 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} er nu på lager igen 📦<{/t}> <{/capture}> <{capture name="email_content"}>
<{t}>Gode nyheder!<{/t}>
<{t x=$product->getName()}>Vi har {x} på lager igen.<{/t}>
<{t}>Du er den første til at blive underrettet, fordi du tilmeldte dig notifikationer.<{/t}>
<{t}>Du kan bestille det her:<{/t}>
<{$product->getName()|escape}>
<{t}>Kontakt os gerne, hvis du har spørgsmål, eller hvis vi kan hjælpe på nogen måde.<{/t}>
<{t}>Med venlig hilsen<{/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}>