The following article discusses two ways of importing compressed data to Magento 2. Firstly, we shed light on a common approach and then proceed to an alternative solution that dramatically improves your admin experience. Below, you will find out how to:
- Import zip to Magento 2;
- Import tar to Magento 2;
- Import tgz to Magento 2.
Now, let’s take a look at how people import archived data to Magento 2 most frequently.'
Table of contents
- 1 A Common Way of Importing Compressed Data to Magento 2
- 2 An Alternative Way of Importing Compressed Data to Magento 2
- 3 Improved Import Features
- 4 Conclusion
A Common Way of Importing Compressed Data to Magento 2
Let’s imagine that you’ve just downloaded a .zip file from the Internet to run Magento 2 product import using the Terminal. Unfortunately, it is not possible to import a .zip file into Magento 2 directly. The same is about tar, tgz, and other archive data formats. Thus, you have to unpack the file manually.
First of all, you should install the unzip command if it isn’t yet installed on your system. Run the following command, otherwise, you won’t be able to extract the desired information:
sudo apt-get install unzip
Now, when the necessary unzip utility is successfully installed, you can use the following command to extract your data file to a particular destination folder:
unzip file.zip -d destination_folder
Now, you can take the unpacked product file and import it into your Magento 2 store.
The only positive aspect of this approach is that it enables the Magento 2 import for compressed data.
What are the negative aspects? You can find a huge list below:
- You need to learn multiple commands to cope with different file formats;
- You should perform lots of manual actions to prepare archive data files for the Magento 2 import – each file should be extracted before import;
- It is not possible to automate data updates;
- You still have to edit data files to make them suitable for the Magento 2 import attribute values.
As you can see, so many difficulties prevent you from running the seamless Magento 2 import. What alternative do we offer instead?
An Alternative Way of Importing Compressed Data to Magento 2
You need to install the Improved Import & Export Magento 2 extension to dramatically improve the aforementioned experience. The module provides the ability to run:
- Magento zip import;
- Magento tar import;
- Magento tgz import.
And you don’t need to extract either of these files to update your e-commerce store. The Improved Import & Export Magento 2 extension will do that for you. Create a new import profile and start the update – that’s the only thing you should do.
Let’s take a look at positive aspects of importing archive data files to Magento 2 with the help of the Improved Import & Export extension.
- Import compressed data into Magento 2 directly without unpacking it;
- No need to learn any commands or have coding experience;
- No manual actions are required except configuring the import profile;
- Automate data updates via a flexible cron schedule;
- Create a mapping scheme to solve issues caused by different attribute standards and avoid manual data file editing;
- Avoid converting compressed data files to formats suitable for Magento 2 – our module offers broad support for different standards.
Perhaps, the only negative aspect of the alternative way of importing archive data files to Magento 2 is the necessity to install a third-party tool, but let’s be honest: the barebone version of Magento requires improvements so that installing additional modules is a quite common procedure.
Now, when you know that the Improved Import & Export Magento 2 extension offers a user-friendly approach to the import of compressed data files to Magento 2, we should pay separate attention to its core features designed to improve your daily admin duties.
Improved Import Features
There are two blocks of features that improved the default Magento 2 import. Firstly, we want to concentrate on the advanced usability enhancements provided by the Improved Import & Export extension from the perspective of the Magento 2 archive data import. Secondly, we will describe the extended connectivity options of the module that also simplifies the Magento 2 import of compressed data.
This chapter describes two features: schedules and mapping. In a combination with the ability to import compressed data, they dramatically simplify your daily routine by making it possible to automate data updates. Let’s take a closer look at what Improved Import & Export offers.
Our extension supports cron allowing you to create any custom schedule of updates. Use the default cron syntax to automate the import of compressed data files into Magento 2. At the same time, you can select one of the predefined intervals which are fully customizable as well.
Alternatively, the Improved Import & Export Magento 2 extension offers the ability to create import profiles designed for a manual run only. For instance, you have a partner who sends data archives infrequently so that you cannot create a corresponding schedule to import them on a regular basis. A manual import profile will be fully suitable for solving that issue.
At the same time, the Improved Import & Export Magento 2 extension provides the ability to launch every profile in an asynchronous mode. This feature is especially helpful when a data file is not provided according to a timetable but the update is urgent. Simply import the information whenever you need without waiting for the scheduled event.
With the Improved Import & Export Magento 2 extension, you can create a schedule of compressed data import to Magento 2 as follows:
Another feature that lets you fully automate Magento 2 import processes and archive data files uploads is mapping. It’s not a secret that different platforms have a different approach to the way data is represented within the system. Therefore, you should edit the external output to make it suitable for the native Magento 2 import attribute values. The procedure is boring, time-consuming, and requires tons of patience and attention. However, you can avoid it with the Improved Import & Export Magento 2 extension.
Our module provides the ability to match external attributes to the internal values of Magento 2 in a very user-friendly way right in the extension admin. The process is called mapping and it is a one-time procedure – not a repeatable action like in case of native Magento import tools or most third-party modules.
In case of the default approach, you have to:
- Unpack the compressed data file;
- Open the extracted document;
- Edit attributes that don’t match the default Magento 2 requirements;
- Save the file;
- Import it into Magento 2;
- Repeat the aforementioned steps for every update.
The Improved Import & Export Magento 2 extension reduces these steps dramatically:
- Create and configure a new import profile;
- Specify a schedule of updates;
- Map attributes within a convenient extension admin;
- Save and run the profile.
You not only decrease the number of steps by 30% but also eliminate manual data file editing and extracting as well as reduce all further actions related to the selected integration. The Improved Import & export Magento 2 extension acts as a number one time-saver when it comes to all kinds of import and export processes. Attributes mapping with our module looks as follows:
Furthermore, our team offers mapping presets – premade mapping schemes. By using them, you don’t even need to match the external output to the native Magento 2 import attribute values. The Improved Import & Export extension will do everything for you. In this case, the mapping is reduced to a few clicks:
Please, contact our support regarding mapping presets for your particular business case. Leave your requests here:
The extended connectivity options of the Improved Import & Export Magento 2 extension are also worth mentioning in the context of compressed data import. Let’s take a look at supported file formats and sources.
File Formats & Sources
No matter what archive data formats are supported if the platform works with a single format of the archive content. Let’s imagine a situation when Magento 2 starts supporting compressed data for import processes but works with CSV only. Thus, in case the content of provided archives is XML, you still have to unpack them because XML files are not supported by the platform. In this situation, support for archive data files is absolutely useless.
To prevent a similar situation, the Improved Import & Export extension offers the extended support for various file formats. In addition to default CSV, it also works with XML, JSON, and OSD. It means that you can import data in these formats in a form of zip, tar, and tgz archives. Also, note that native Excel files – XLS and XLSX – are utilized for internal purposes.
When it comes to data file import, it is also worth mentioning a broad variety of supported file sources. Firstly, the Improved Import & Export Magento 2 extension offers FTP/SFTP support allowing you to import data archives to Magento 2 from a local or remote server. Secondly, you can use Dropbox for the same purposes. Thirdly, the module supports direct URL uploads!
Alternative Ways of Import
In addition to the default file import, our extension lets you streamline several more alternative options designed to avoid data file migrations. First of all, you can transfer data right from Google Sheets as shown below:
More complex connections can be established via SOAP API, REST API, and GraphQL API. Note that all usability features work seamlessly with both file transfers and the alternative ways of import/export. You can discover more facts about the functionality of the Improved Import & Export Magento 2 extension from the following video:
Let’s summarize the benefits of importing archived data to Magento 2 with the Improved Import & Export extension:
- No need to use the Terminal, apply commands, or work with code;
- No need to extract compressed data manually;
- No need to edit the extracted data matching attributes;
- No need to repeat data uploads and editing;
- No need to convert data files to CSV;
- Use schedules to automate data uploads;
- Use the mapping interface to match attributes in a one-time procedure;
- Import compressed data from multiple file sources;
- Import files in multiple formats.
If you still have any questions, please, leave your requests here: