How to make the review reminder emails use custom header and footer ?

Created by Robin Hoang, Modified on Mon, 24 Sep, 2018 at 9:36 AM by Robin Hoang

Please modify this code:
app\code\Bss\ReviewReminder\Observer\ReviewSaveAfter.php:
$emailTemplate = $this->helper->configCouponEmailTemplate($order->getStore()->getCode());

app\code\Bss\ReviewReminder\Helper\Email.php:
try {
$storeId = (isset($templateVar['storeName']) ? $templateVar['storeName']->getId() : 0);
$storeCode = (isset($templateVar['storeName']) ? $templateVar['storeName']->getCode() : 'admin');
$email = $this->helper->configSenderEmail($storeCode);

//Send Email
$transport = $this->transportBuilder
>setTemplateIdentifier($emailTemplate)
->setTemplateOptions(
[
'area' => \Magento\Framework\App\Area::AREA_FRONTEND,
'store' => $storeId,
]
)

app\code\Bss\ReviewReminder\Helper\Data.php:
public function configSenderEmail($storeCode)
{
return $this>scopeConfig->getValue(
'reviewreminder/general/email_sender',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
}

public function configEmailTemplate($storeCode)
{
return $this->scopeConfig->getValue(
'reviewreminder/general/email_template',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
}

public function configCouponEmailTemplate($storeCode)
{
return $this->scopeConfig->getValue(
'reviewreminder/coupon/email_template',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
}

app\code\Bss\ReviewReminder\Cron\SendMailCron.php
$emailTemplate = $this->helper->configEmailTemplate($storeCode);


If you have any question, please let us know.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article