Improved Import / Export MAJOR UPDATE 3.0 - Excel, Json, XML, APIs, automation, mapping, attributes, consecutive run and more EXPLORE

"Fire development"

How to write and get config values by scope in Magento 2

- Fire development, Magento 2

Magento 2 import export debug log

In the following article, we’d like to draw your attention to an essential feature of Magento 2 – the ability to write and get config values by scope. Unfortunately, it is less documented than others, but we are here willing to help you! Note that you may need to apply different settings to different stores programmatically. Everything else is mentioned below. For more tips and advice, follow this link: Magento 2 Developer’s Cookbook. Continue Reading

How to get a store in Magento 2 programmatically?

- Fire development, Magento 2

Magento 2 Development

In the article below we shed light on how to get a current store in Magento 2 programmatically. The following information is useful when you create a PHP script or Magento 2 module. Sometimes, it is necessary to check, which store is currently active or for which store you need to get or change values. The procedure is quite straightforward: you need only a few lines of code to do that. More tips from Magento 2 cookbook. Continue Reading

How to solve Magento 2 var/generation cannot be deleted problem

Magento 2 import export debug log

You might have already faced the var/generation cannot be deleted warning while setting up a new Magento 2 shop. However, this problem is not serious, and you can easily fix it with almost zero effort. In the following article, we shed light on the solution of the Magento 2 ‘var/generation cannot be deleted’ issue. You can find more tips here: Magento 2 Developer’s Cookbook. Continue Reading

How to get option label from dropdown in Magento 2

- Fire development, Magento 2

get option label from dropdown in Magento 2

A frequent search task among Magento developers is to get an option label from a dropdown. However, it is quite confusing for beginners since the actual value of a drop-down product attribute is a number. Many newcomers expect that it is a text. But there is nothing to worry about. Below, we explain how to get an option label from a dropdown in Magento 2 as well as shed light on everything you need to know to begin working with dropdown product attributes.  More coding tips are available here: Magento 2 Developer’s Cookbook.

Continue Reading

How to get a product by ID in Magento 2

- Fire development, Magento 2

Magento 2 get product by ID

If you want to get a product by ID in Magento 2, the platform offers several different methods to do that. And since it is one of the most frequently used operations in a programmer’s routine, we describe every approach below. Each method is unique and suitable for different use cases. You can utilize them to get products in third-party modules, scripts, or phtml files. Therefore, let’s see how to get products by ID in Magento 2. More coding tips are available here: Magento 2 Developer’s Cookbook. Continue Reading

How to Use Grunt in Magento 2

- Fire development, Magento 2

Magento 2 Grunt tutorial

Grunt is a contemporary JavaScript task runner which essentially simplifies repetitive tasks by automating compilation, minification, linting, unit testing, etc. It can do most of the aforementioned routine processes with zero effort, you only have to configure the task runner through a Gruntfile. And while the purpose of the tool looks quite intriguing, its versatility is even more promising, since you can easily utilize it within all possible platforms and projects. Below, we will explain how to use Grunt with Magento 2. Continue Reading