Add Magento Admin User Using MySQL Script

Read More

Magento2 How to remove or rename ‘Add New’ button from Admin Grid

Rename ‘Add New’ button

– Go to YourNamespace -> YourModule -> Block -> Adminhtml -> ModuleFile.php
– Add the following code in the constructor of this file:-

Remove ‘Add New’ button

– Go to YourNamespace -> YourModule -> Block -> Adminhtml -> ModuleFile.php
– Add the following code in the constructor of this file

Read More

Enable MySQL query logging in Magento 2

Open file app/etc/di.xml

Search below text

Changed to

We can also pass the arguments as below

Read More

Retrive Store Details In Magento

Read More

How to add noindex, nofollow robots meta tag or change meta title or description on certain pages

You can use your local.xml to do updates.

Read More

Store and read session variables in Magento

We can use set and get method to store variables in session.

To store variable in session.

To retrieve variable in session.

 

Read More