25 01, 2017

Magento 2: Unlock the admin user

January 25th, 2017|ECOMMERCE, MAGENTO, MAGENTO 2, PHP|0 Comments

Sometime if admin user is locked out, and we cant login at admin side. We receive the error message “User is locked”.

Use this command to unlock the admin user.

 

24 01, 2017

Magento 2: How to create new admin user using SSH

January 24th, 2017|MAGENTO, MAGENTO 2, PHP|0 Comments

Sometimes When we install the Magento, and try to login in admin panel with correct credentials, but it won’t be accepted and login is denied. The reason is that details were not properly saved in Database. So we can’t login in back-end.

In Magento2 we didn’t know how to create admin […]

20 07, 2016

Magento 2: Add new column in magento structure table

July 20th, 2016|MAGENTO, MAGENTO 2|0 Comments

When you install or upgrade a module, you may need to change the database structure or add some new data in current table. Magento 2 provide you some classes which you can do all of them.

  • InstallSchema – This class will execute when the module is installed to setup the database […]
3 06, 2016

Magento 2: How to add 404 page in any module

June 3rd, 2016|MAGENTO, MAGENTO 2|0 Comments

There are two ways to display 404 page in Magento.
1. We can call default CMS page of 404 which is already created in back-end.
2. We can call the noroute.phtml file for 404

Sometimes, the module is disabled or  it does not display any content in the site as per below screen shot. […]

17 02, 2016

Magento 2: Flush the cache using Command Line

February 17th, 2016|MAGENTO, MAGENTO 2|0 Comments

If there is no any access of admin. Without login at admin side we can clear che cache.
Now, here we are describing the command:

Enable the cache use this:

Disable the cache use this:

Flush the cache use this:

Clean the cache in the site:

 

Execute the above command using command line and be happy. […]

4 02, 2016

Magento 2: Apply the schedule for theme

February 4th, 2016|MAGENTO, MAGENTO 2|0 Comments

In the magento 2 we can set the schedule for different theme.

1) Login to Admin panel
2) Go to Content > Design > Schedule
3) Click on “Add new Design” theme
4) Select the theme,start date, from date and save the design theme

design_create

Now check […]

3 02, 2016

Magento 2: Reindex using Command line

February 3rd, 2016|MAGENTO, MAGENTO 2|0 Comments

We are thinking how we will run the indexing using command line and which command we will use to run this.

Now here we are describing the command:

If we need to do whole index management in the site we will run the following command in project

In root magento directory

 

in root/bin directory

To […]

1 02, 2016

Magento 2: Create Custom Query

February 1st, 2016|MAGENTO, MAGENTO 2|3 Comments

Now You are thinking How we will get write the core Query in Magento.

Let’s Start. Here We give the example of insert, update, delete, select.

1. Insert

 2. Update

 3. Delete

4. Select

Hope, This Will Work in your system

29 01, 2016

Magento 2: PHP extension error at the time of Installation

January 29th, 2016|MAGENTO, MAGENTO 2|0 Comments

When we try to install Magento 2 in our wamp server we got the error

error1

Solution:

1) Go to the path D:/wamp/bin/php/php5.5.12 select all file and select and copy the file which start with “icu”

solution1

2) Paste […]

27 01, 2016

Magento 2: Add New Massaction in the Admin Grid

January 27th, 2016|MAGENTO, MAGENTO 2|0 Comments

Now, You are thinking how we will overwrite the grid.php in Magento 2. Because some module has grid.php and some has not.
Now We are adding the one massaction in Sales_order Grid at admin side which has no grid.php for order.

1. Create the file sales_order_grid.xml in the path app\code\[Vendor Name]\[Module Name]\view\adminhtml\ui_component

2. […]