How to Import Configurable Product with Multiple Configurable Options to Magento 2
Some Magento 2 users
Some Magento 2 users
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
In the following article, we shed light on how to get a current quote in Magento 2. To be more exact – from your Magento 2 shot. Why does one need this action? It is mainly utilized for manipulating a cart before creating an order from it. A current quote object provides you with access to all items and enables doing some checks or manipulations with them. You can find more useful tips here: Magento 2 Cookbook. Continue Reading
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
In the following post, we shed light on how to fix the “Item (Magento\…) with the same ID already exists“ error in Magento 2. The problem occurs when you delete a product manually, and the product with this entity_id is no longer available on either the frontend or backend. You can find more information about other Magento 2 errors here: Magento 2 Developer’s Cookbook. Continue Reading
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
The following article sheds light on how to get default billing and shipping address by a customer in Magento 2. This action is required if it is necessary to create a new customer or update an existing one programmatically. To find more tips about Magento 2, follow this link: Magento 2 Developer’s Cookbook. Continue Reading
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.
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