Magento2 eCommerce Platforms

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

Magento2- Remove plus sign from the configurable product attributes that have additional price

To do this we need to work on the design area it is the easiest way 

firs Create new folder under your theme 

Folder Name: Magento_ConfigurableProduct\web\js

Copy this file "configurable.js" from this path

vendor/magento/module-configurable-product/view/frontend/web/js/configurable.js 

in the line 407 you need to modify this part

 

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 :)

Magento 2 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

 

to cache any block, you need to override this function