1

I have created a custom form module, when I send email and the template showing Luma theme header and footer but for another emails everything loads from custom theme.

Question : Why this is happening?

Any help would be appreciable.

1 Answer 1

2

For 'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID

use 'store' => $this->storeManager->getStore()->getId()

Where $this->storeManager is alise of Magento\Store\Model\StoreManagerInterface

2
  • Thanks @savan Patel, Apr 26, 2019 at 10:53
  • 1
    It's my pleasure @MohammadFaizan Apr 26, 2019 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.