Skip to main content

Magento2

Power your online business with the most flexible and scalable ecommerce platform

Magento2 use equal in email template

In this wiki we will find a way to use "==" equal in the email template, actually there is no equal in the email template itself but we can refer to a phtml file and pass a variable to it then use the if/equal in the phtml file to do this you can easily add this code to the template 

in the below example we will check if the payment method is bank transfer then we will write something

Use SMTP no authorization for Office 365 in Magento 2

First of all you need to install Mageplaza Extension , you can find it here

https://github.com/mageplaza/magento-2-smtp

 

after you create O365 SMTP connector that you may use as smtp server to allow sending out emails as group

 

you need to override this class

vendor\mageplaza\module-smtp\Model\Config\Source\Authentication.php

change value of None from '' into 'smtp'.

then go to the configuration and choose None and click on Save

that's it :)

Magento2 caching a blocks in a page

Magento2 Block Cache Caching plays an essential role in improving the page load time. In this article, I want to show you five blocks cache in Magento 2, or five approaches to caching, and when and how to use them. Interestingly, this article will cover both full page and block cache. Let’s explore each type of block cache together! In case, cache_lifetime of the block is set to a number greater than 0, the block is cacheable