"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

What if you have numerous bundle products on your Magento 2 website and need to update them regularly? What if updates should impact only particular bundle product options? Well, you’ve come to the right place. Below, you will learn how to update bundle product options using Magento 2 import. Although the default Magento 2 import tool doesn’t let you update bundle products and choose the specific options that should be adjusted, you can rely on the Improved Import & Export Magento 2 module to achieve this goal.   Continue Reading

How to import products to Magento 2 and set their status to Out of Stock automatically

- Magento 2, Our extensions

Magento 2 Development; Magento 2 tutorial

Chances are, you import products to Magento 2 but their status doesn’t change to ‘out of stock’ if the imported quantity is 0. It may look confusing or cause issues in other processes that require this information. However, there is a way to address this issue without editing your data files or applying stock status changes manually. Below, we explain how to import products with 0 quantity to Magento 2 and set their status to ‘Out of Stock’ automatically. You will need the Improved Import & Export Magento 2 extension and a couple of minutes.  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