Home » Archive

Articles in the Magento 2 Category

Magento, Magento 2 »

[25 Dec 2017 | Comments Off on Magento 2: Unlock Reindex Process via Command Line]

This article shows how you can unlock the locked reindexing process Magento 2 via command line.
Problem
Sometimes a scenario comes when the indexing process gets locked at the time of reindexing. When the process or the index type is locked then you cannot reindex that particular locked index type. The reindex will always skip that index type.

Magento, Magento 2 »

[18 Dec 2017 | One Comment]

This article shows how you can upgrade/update Magento 2 to any particular version using composer and command line.
First of all, you have to open terminal/command prompt.

Magento, Magento 2 »

[11 Dec 2017 | Comments Off on Magento 2: Enable/Disable Module via Command Line]

This article shows how you can enable or disable Magento 2 modules using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable Magento 2 modules.
Get the List of All Modules

Magento, Magento 2 »

[27 Nov 2017 | Comments Off on Magento 2: Maintenance mode via Command Line]

This article shows how you can enable or disable Maintenance mode in Magento 2 using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to enable/disable maintenance mode in Magento 2.
Check Maintenance Mode Status

Magento, Magento 2 »

[20 Nov 2017 | Comments Off on Magento 2: Reindex via Command Line]

This article shows how you can reindex Magento 2 index types using the command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to reindex Magento 2 index types.
Get Index Types Info

Magento, Magento 2 »

[13 Nov 2017 | Comments Off on Magento 2: Enable/Disable/Clear Cache (Clean/Flush) via Command Line]

This article shows how you can clear Magento 2 cache using command line. In my previous article, I have listed out all the command line tools that can be used in Magento 2. This article specifically shows about commands to clear Magento 2 cache.
Check Cache Status

Magento, Magento 2, Magento Extension »

[11 Apr 2017 | 2 Comments]

Google Tag Manager is a FREE Magento 2 Extension that allows you to integrate Google Tag Manager to your site. This extension also provides ecommerce transaction tracking feature. You just need to enter your Tag Manager container id in the extension’s configuration settings.
This module is compatible with Magento version 2.0 and later.

Magento, Magento 2 »

[16 Jan 2017 | Comments Off on Magento 2: Get Attribute Id, Name, Value from Attribute Code]

This article shows how you can get attribute name or label, id, entity_type, etc. by attribute code in Magento 2.
If you would like get attribute name and value in Magento 1 then you may refer to this article: Magento: How to get attribute name and value?

Magento, Magento 2 »

[9 Jan 2017 | One Comment]

This article shows how to get payment methods in Magento 2. We will be fetching 3 types of payment methods. They are:

1) All Payment Methods
2) Active/Enabled Payment Methods
3) Payment Methods that have been used while placing orders

Magento, Magento 2 »

[4 Jan 2017 | 2 Comments]

This article shows how to get all customer groups name and id in Magento 2.
I will be showing an example in a Block class. You can write the code in other class (Helper/Model) as well.
Both ways (Dependency Injection & Object Manager way) are shown below.

Magento, Magento 2 »

[3 Oct 2016 | 2 Comments]

This article/tutorial show how to download and install Magento 2 through command line interface (CLI). We will be using Composer to download Magento 2 from Magento’s repository.
Here is the step-by-step guide on installing Magento 2 via command line:

Magento, Magento 2 »

[26 Sep 2016 | 3 Comments]

This article shows how to get custom option values of products/items added to cart or products of any order in Magento 2.
I will simply be using ObjectManager for this example.

Magento, Magento 2 »

[19 Sep 2016 | 4 Comments]

This article shows how we can get list of all categories from current product or any particular product as well.
Both ways (Dependency Injection & Object Manager way) are shown below:

Magento, Magento 2 »

[14 Sep 2016 | Comments Off on Magento 2: Upgrade/Update using Command Line & Composer]

This article shows how you can upgrade/update your Magento 2 version through command line using composer.
In this example, I am upgrading Magento 2 to version 2.1.1.

Magento, Magento 2 »

[5 Sep 2016 | 5 Comments]

This article shows how to get shopping cart items/products, subtotal and grand total of cart, and shipping and billing address entered while doing checkout in Magento 2.
I will be using both Dependency Injection (DI) and Object Manager in the below example code.