Monthly Archives: May 2016

Steps for Magento2 Installation

Magento2 comes with New UI Features and so below are the steps for the installation.There are only 6 Major Steps need to install Magento 2

First download the Upgrade version of Magento 2.x from below link


Extract the folder and give permission to “Pub” and “var” folder and then start the Process check the below screen which will help you to understand better.

Installation magento22 magento23 magento24 magento25 magento26 magento27 magento28 magento29

Once the installation completed link with front end and Backend will be shown.

If all things works then no need to Follow step 7

Step 7)
Just open the Terminal or cmd if it is install on local machine

Go to Folder where Magento 2.x is been installed.

and run the following command as shown in the screen once all things done frontend and admin will work without error.

Hope this will help you.

cmd screecmdscreen2


Magento2 Database Schema Changes

Although Magento 2.x i.e in (2.0.5) had changes at File level some changes where made and can be observer in Database Schema also

Database Tables : 309

System Attributes : 130

1) In Magento 1.x we have table which start with core

core_resource (in which store the version number)




2) In Magento 2.x we are not using core any more

setup_module (in which store the version number)


authorization_role  (Structure changed)

authorization_rule  (Structure changed)

All tables related to customer “entity_type_id” had been removed.

May be more changes made in table structure so we will updating this post once if we found more.

Hope this will help you.

Magento2 get store config value

Store Config value which help us to get the value directly from System Configuration.

Just get the object of ScopeConfigInterface and the we can use in way as mentioned below

protected $scopeConfig;

public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
) {
$this->scopeConfig = $scopeConfig;

We can use in our Function


Hope this will help you.

Magento2 Get Current Store Date Time

As we know coding Standard for Magento 2.x changed as compared to Magento 1.x

so in order to get the Date and Time in  Magento 2.x

we need to inject in our class constructor an instance of

\Magento\Framework\Stdlib\DateTime\DateTime and use that one.

Something like this:

protected $date;
public function __construct(
\Magento\Framework\Stdlib\DateTime\DateTime $date,
) {
$this->date = $date;

and the we can use in our Function
$date = $this->date->gmtDate();

$date = $this->date->date();

$date = $this->date->date(‘Y-m-d H:i:s’);

hope this will help you.