"Magento 2 Developer’s Cookbook"

How to import nested JSON files to Magento 2

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

By default, Magento 2 doesn’t let you use JSON files to import data to your e-commerce website. While you can fix that with the help of some third-party extensions, they usually fail when it comes to complex JSON structures or nested JSON files. If there is more than one nested level, you won’t be able to import data to Magento 2. However, we know the solution, and it is our Improved Import & Export Magento 2 extension.

Below, you will learn how to import nested JSON files to Magento 2 if the desired information is hidden deep in their structure. In a nutshell, it is necessary to specify a path to the data within the file, but let’s see the details.  Continue Reading

How to import unique custom option titles for specific store views in Magento 2

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Magento 2 allows for having different titles for the same custom option in different store views. Thus, it brings an additional layer of diversity if you use several storefronts. However, you may not be able to import specific titles for particular store views. In this situation, you have to deal with additional editing after importing the product update file. Fortunately, it is possible to avoid these unnecessary chores with the help of Improved Import & Export. Below, we explain how to import unique custom options titles for specific store views in Magento 2. Continue Reading

How to import customers to Magento 2 and assign them to a customer group

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Chances are, you know a situation when it is necessary to import customers to Magento 2, but they are not assigned to a customer group. You need to re-assign them manually in this situation. The more cusomers your data file consists of, the more time you have to spend doing this data entry routine. But what if this process could be automated? 

Below, we explain how to import customers to Magento 2 and assign them to a customer group even if this customer group doesn’t exist on your e-commerce website. All you need is Improved Import & Export. But let’s explore the issue in more detail before discussing the solution.   Continue Reading

How to generate order increment IDs automatically during Magento 2 import

- Magento 2

Magento 2 Development; Magento 2 tutorial

What if you need to import orders to Magento 2? The platform doesn’t support this process. But you can easily add the missing functionality with the help of third-party order import solutions. But what if your import file doesn’t include order increment IDs? The situation becomes slightly more complicated since not all third-party modules know how to deal with this problem. In the following article, you explain how to generate order increment IDs automatically during Magento 2 import. Continue Reading

How to update products that are not listed in a product table during Magento 2 import

- Magento 2

Magento 2 Development; Magento 2 tutorial

Chances are, you faced a situation when your product import file didn’t contain all the items from your Magento 2 catalog, but you had to update every single position on your e-commerce website. The more records were missing, the more work had to be done. Now, you can forever forget about this painful experience. Below, we explain how to update products that are not available in your import table during the Magento 2 import. Spoiler: No manual editing is required!  Continue Reading

How to fix “The source file moving process failed” error in Magento 2

- Magento 2

Magento 2 Development; Magento 2 tutorial

In this article, we explain how to fix the “The source file moving process failed” error in Magento 2. It may occur in Magento 2.4 upon import. If you’ve already experienced this issue, you will find the solution below. Check our Magento 2 cookbook for more tips like that. The following material incorporates a Stack Exchange case and our own experience related to Magento 2 data import and export.  Continue Reading

How to import product images in Magento 2 when they already exist in pub/media

- Magento 2

Magento 2 Development; Magento 2 tutorial

Have you ever been in a situation when Magento 2 doesn’t let you import product images? Although there may be numerous factors that cause this problem, we explore a particular case. Below, you will learn why the “Imported resource (image) could not be downloaded” error occurs in Magento 2 and how to fix it. This post incorporates materials from this Stack Exchange question. Follow our Magento 2 Cookbook for more tips like that.     Continue Reading

How to export Page Builder pages or templates in Magento 2?

- Magento 2

Magento 2 Development; Magento 2 tutorial

In the following article, we share several ways how to export Page Builder pages or templates in Magento 2. While it is not possible by default, you can always rely on third-party solutions that are capable of the missing functionality or harness the advice of people who already fixed the issues associated with the lack of the desired feature. So, how to export Page Builder data in Magento 2?  Continue Reading

How To Add ‘Delete Confirmation Popup’ In Magento 2 For Default Import Functionality 

- Magento 2

Magento 2 Development; Magento 2 tutorial

Kavya cheerala asks for help in the following situation via a Stack Exchange question. The author has added a custom entity in the default Magento 2 import. As a result of this improvement, it is necessary to display the Magento 2 delete confirmation popup upon the delete action when you click the import button. How to do that? You will find the answer below. We explain how to add Magento 2 confirmation popup and customize its text message.  Continue Reading