<{* Template: payment_mail.html Description: Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{* html blocks *}> <{capture name="products_html"}> <{include file="mails/email.order.products.html" products=$order->getProducts()}> <{/capture}> <{* variables *}> <{assign var="company_phone" value=$settings.company.phone}> <{assign var="company_email" value=$settings.company.email}> <{assign var="customer_name" value=$order->getOrderName()|escape}> <{assign var="payment_url" value=$payment_url|escape}> <{assign var="products_list" value=$smarty.capture.products_html}> <{assign var="review_link" value=$order->getPublicUrl('product_review')}> <{assign var="email_subject" value=$settings.emails.payment_mail_subject}> <{assign var="email_content" value=$settings.emails.payment_mail_content}> <{* find & replace *}> <{assign var="find" value='||'|explode:"[company_phone]||[company_email]||[payment_url]||[customer_name]||[products_list]||[review_link]"}> <{assign var="repl" value='||'|explode:"$company_phone||$company_email||$payment_url||$customer_name||$products_list||$review_link"}> <{* 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}>