{* Template: Product Review Email Description: Email send x-hours after an order has been made to retrieve a product review Author: 1260 A/S, @1260-digital Since: 2022-11-04 *}> <{* html blocks *}> <{capture name="products_html"}> <{include file="mails/email.order.products.html" products=$order->getProducts() show_order_summary=false}> <{/capture}> <{* 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="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')}> <{capture name="email_subject"}> <{t}>What did you think of about your recent order? 📦<{/t}> <{/capture}> <{capture name="email_content"}>
<{t x=$customer_name}>Hi {x}<{/t}>
<{t}>What did you think of about your recent order? 📦<{/t}>
<{$smarty.capture.products_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.review_mail_subject|default:$smarty.capture.email_subject}> <{assign var="email_content" value=$settings.emails.review_mail_content|default:$smarty.capture.email_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}>