Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Fix some issues with email templates #13

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Model/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ protected function _processRun($run, $storeId)
$vars = array('quote' => $quote, 'url' => $url, 'couponcode' => $couponcode, 'name' => $name, 'tags' => array($this->mandrillTag), 'unsubscribeurl' => $unsubscribeUrl);
}
} else {
$vars = array('quote' => $quote, 'url' => $url, 'unsubscribeurl' => $unsubscribeUrl, 'tags' => array($this->mandrillTag),'subject'=>$mailSubject);
$vars = array('quote' => $quote, 'url' => $url, 'unsubscribeurl' => $unsubscribeUrl, 'name' => $name, 'tags' => array($this->mandrillTag),'subject'=>$mailSubject);
}
$transport = $this->_transportBuilder->setTemplateIdentifier($templateId)
->setTemplateOptions(['area' => \Magento\Backend\App\Area\FrontNameResolver::AREA_CODE, 'store' => $storeId])
Expand Down
4 changes: 2 additions & 2 deletions view/adminhtml/email/abandoned_cart_mail_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tr>
<td valign="top">
<h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Hello,
{{var $name}}</h1>
{{var name}}</h1>

<p style="font-size:12px; line-height:16px; margin:0;">
You have an abandoned cart at {{var store.getFrontendName()}}.
Expand Down Expand Up @@ -70,4 +70,4 @@ <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px
</tr>
</table>
</div>
</body>
</body>
4 changes: 2 additions & 2 deletions view/adminhtml/email/abandoned_cart_mail_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tr>
<td valign="top">
<h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Hello,
{{htmlescape var=$name}}</h1>
{{var name}}</h1>

<p style="font-size:12px; line-height:16px; margin:0;">
You have an abandoned cart at {{var store.getFrontendName()}}.
Expand Down Expand Up @@ -71,4 +71,4 @@ <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px
</tr>
</table>
</div>
</body>
</body>