"Magento 2 Developer’s Cookbook"

How to import CSV files from /var/import/ folder to Magento 2 automatically

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Today, we explain how to import CSV files from the /var/import/ folder to Magento 2 automatically. As usual, you will need Improved Import & Export to overcome the default platform’s limitations, such as the inability to create update schedules. Configure the extension as we describe below, and it will do all the daily data transfer tasks for you. For more tips like this one, follow our Magento 2 Developer’s Cookbook.  Continue Reading

How to import default attribute values for products via API in Magento 2

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Recently, we’ve discovered a discussion on Stack Exchange about Magento 2 API import. The author asks whether it is possible to import default attribute values for products via API in Magento 2. Although you cannot establish API transfers using the default import interface, the Improved Import & Export extension lets you obtain the desired functionality within a couple of clicks. Let’s explore the issue in more detail and then proceed to the solution. And don’t forget to follow our Magento 2 Cookbook for more information on how to run your e-commerce website smoothly.  Continue Reading

How to create redirects from old URL keys to new ones via Magento 2 import

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Chances are, you’ve been in a situation when the updated URL keys in Magento 2 continued returning a 404 error. Importing them via a CSV file introduced new URL keys but didn’t affect the exact user experience. Consequently, you had to edit URL keys manually per each store page. 

Below, we describe how to avoid this problem. You will learn how to create redirects from old URL keys to new ones using a CSV import in Magento 2. You will need an additional instrument to smooth the angles of the default Magento 2 import and get what you want from importing URL redirects to Magento 2. For more tips like this one, follow our Magento 2 Developer’s Cookbook. So, how to create redirects from old URL keys to new ones using a CSV import in Magento 2? Let’s see. Continue Reading

How to import & export Magento 2 categories with custom separators

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Since category names on an e-commerce website may contain commas, the export process may recognize them as separators, creating new categories in your export file. The same issue impacts your category tree on import: since the comma is considered a delimiter, a long category name can be split into several new categories. Below, we explain how to import and export Magento 2 categories with custom separators to avoid these issues. As usual, you will need the Improved Import & Export extension for Magento 2 since the platform’s default data transfer instruments do not support category import or export, nor it lets you use custom separators for category names when you import and export products.   Continue Reading

How to disable products not available in an import file for specific Magento 2 websites

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

We’ve already explained how to update Magento 2 products that are not available in an import file. Today, we explain a more specific case: you will learn how to disable products that are not available in an import file. Moreover, there is a possibility to disable the on specific Magento 2 websites. Of course, you won’t be able to do that with the default Magento 2 import tool. You will need the Improved Import & Export extension to transfer the update as intended.  Continue Reading

How to send CC & BCC email notifications for Magento 2 import & export 

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

You may not always be able to monitor your Magento 2 import and export processes in real time. And you may not need to do so with the Improved Import & Export extension. The module offers a robust system of email notifications so that you can always be in the know about the success of your data transfers. While most similar solutions let you send a notification to a single recipient only, our plugin offers a few other options. Below, we explain how to send CC and BCC email notifications for import and export processes in Magento 2. But let’s first explain what CC and BCC are.  Continue Reading

How to import and export attribute sets with multiple values in Magento 2

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

In the following article, you will learn how to import and export attribute sets with multiple values in Magento 2. While previously you had to duplicate attribute rows per each specific attribute set, we’ve enhanced this process in the latest version of the Improved Import & Export extension. Now, you can reduce the size of your update file, since the attribute_set attribute can contain multiple values.  Continue Reading

How to Update Bundle Product Options Using Magento 2 Import

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Updating existing bundle product options in Magento 2 can be tricky, especially when multiple options share the same title, or you need to change individual selections without affecting the rest of the bundle. A regular product import in Magento 2 may not reliably identify which existing option or selection to modify.

Fortunately, you can update Magento 2 bundle product options using import with the Improved Import & Export extension. The module supports two important identifiers — option_id and selection_id — that let you target existing bundle options and their selections.

In this guide, we’ll explain why these identifiers matter and demonstrate how to change a bundle option title and an individual selection’s default quantity. For a broader explanation of bundle configurations, see our complete Magento 2 bundle product guide. Continue Reading

How to import nested XML files to Magento 2

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Since Magento 2 supports only CSV files for data import, you get stuck when your product update is provided via XML. So is a file with customers or any entity that you may need to import to Magento 2. However, some third-party modules understand what XML files are. But it is not always enough. Especially when you deal with complex XML structures or nested XML files. 

If your XML file contains more than one nested level most third-party extensions cannot import it to Magento 2.  Unless it is the Improved Import & Export Magento 2 module. 

Below, we explain how to import data to Magento 2 using nested XML files if the update is hidden deep in their structure. To be honest, it is quite simple: you need to specify a path to the data within the file. But let’s first see what nested XML is.  Continue Reading

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