If you need to import or export attributes, attribute sets, or attribute values for your Magento 2 website, you’ve come to the right place. Below, we shed light on how to enable this functionality on your store even though Magento 2 lacks this feature. By using the out-of-the-box version of the platform, you can only add necessary attributes manually, but it is not an option. Magento 2 attributes, values, and attribute set import and export are described below.'
Table of contents
- 1 Reasons for Attribute Import & Export
- 2 Manual Attribute Import and Export
- 3 Automated Attribute Import and Export
- 4 Improved Attribute Import/Export Functionality
- 5 Conclusions
Reasons for Attribute Import & Export
Why is it necessary to import or export attributes, attribute sets, or attribute values into/from your Magento 2 website? There are many reasons to do so:
- Switching from another e-commerce platform or webshop engine;
- Extending your current store with third-party data related to new products;
- Copying another shop;
- Increasing your current product assortment.
You may know many more reasons to import/export attributes, but let’s make the long story short and proceed to different ways of reaching our goal.
Manual Attribute Import and Export
Let’s take a look at all pros and cons of the manual attribute import.
If you want to import attributes, attribute sets, or attribute values into Magento 2, you have to recreate them manually in the admin section of your store. What are the positive aspects of this process? First of all, you don’t need any third-party extensions. At the same time, you will face the structure of your attribute system learning it far better (but does it really matter?).
Why don’t we recommend using the manual approach, you will ask? Because an average e-commerce store usually has hundreds or even thousands of attributes, several attribute sets, and a plethora of corresponding attribute values. It usually takes weeks to recreate the necessary attribute scheme without importing it directly from an external system.
And don’t forget that you cannot export attributes, attribute sets, and attribute values manually in case of barebone Magento. Your only export file is your brain. While it is a perfect machine, we know much better ways of attribute export, for instance, with the help of the Improved Import & Export Magento 2 extension.
Automated Attribute Import and Export
Now, we’d like to discuss how to revamp the manual attribute import and export entirely saving tons of time and effort and what other benefits this approach offers.
With the Improved Import & Export Magento 2 extension, you can:
- Import attributes, attribute sets and attribute values using multiple file formats: CSV, XML, JSON, ODS, etc.
- Export attributes, attribute sets and attribute values with the help of the same file formats.
- Apply mapping for import to modify any third-party attributes according to the default requirements of Magento 2.
- Apply mapping for export to create output suitable for any third-party system.
- Freely transfer all attribute details: properties, options, swatches, etc.
- Use a sample file on import.
- Create new attributes on the fly during import.
All these and other features dramatically decrease the time necessary to create new attributes, their sets, or values. You no longer have to waste weeks doing the routine processes manually. Get all the required information right in a few clicks with the Improved Import & Export Magento 2 extension. But what are the cons?
There is only one negative aspect related to the automated attribute import and export. To achieve the desired functionality, you need to install a third-party extension. But how would the Magento 2 ecosystem compete with other e-commerce platforms without third-party extensions? In any way, shape, or form.
Improved Attribute Import/Export Functionality
Below, we shed light on core features provided by the Improved Import & Export Magento 2 extension to enhance attribute import and export functionality of the platform. The module lets you create:
- Attribute groups, attribute set names, and multiple attribute sets;
- Attribute labels on the store view basis;
- Attribute options on the store view basis;
- New attributes on the fly.
At the same time, you can update:
- Attribute labels for each store view;
- Attribute option values for each store view.
And don’t forget that the extension offers the corresponding export options, including export by specific attribute sets. And it was just the tip of the iceberg. More features are described below.
Edit attribute values
The Improved Import & Export extension lets you edit attribute values during import with the help of multiple rules. Create numerous rule combinations using the following features:
- Add a prefix or/and suffix to SKU and other attributes;
- Split data from one block to multiple blocks;
- Merge data from multiple blocks in one;
- Manipulate the values in the source file via RegEx.
For further information, check this post: How to Modify Attribute Values During Import and Export in Magento 2.
Create new attributes on the fly during import
The idea behind this feature is quite simple – instead of having an attribute name in an attributes column, we place all data necessary to create an attribute there: an attribute set, a frontend label, scopes, etc. Below, you can see an example of the general format of an attribute creation column:
Use a pipe symbol – “|” – to separate values. Note, that the new attribute column should ALWAYS start with ‘attribute’. Thus, the Improved Import & Export extension understands that it is a new attribute.
Below, you can see the example of the name of the column with the new attribute:
The feature is described in more detail in the official manual of the Improved Import & Export Magento 2 extension here: Product attributes import.
Multiple file formats for attribute import & export
As it was mentioned above, the Improved Import & Export Magento 2 extension works with multiple file format. It allows importing data in CSV, XML, JSON, ODS, and Excel files. The same is about export. Since attribute import/export processes are an integral part of the module, you can leverage the same standards to transfer data between your e-commerce store and any external systems.
While other similar modules usually work with CSV only, we dramatically extend the list of supported file formats. It means that you no longer need to convert XML, JSON, ODS, or Excel files to CSV to run attribute import. At the same time, the Improved Import & Export extension provides the ability to export attributes, attribute sets, and attribute values in one of the formats mentioned above that radically improves integration with third-party platforms.
Multiple file sources for attribute import & export
When it comes to file transfers, we should also draw your attention to file sources supported by the Improved Import & Export Magento 2 extension. With our module, you can transfer data files with attributes using the following destinations:
- FTP/SFTP. The extension enables attribute import from a remote or local server. The same file source can be used for attribute export processes.
- Dropbox. You can also leverage a Dropbox account to transfer attributes, attribute sets, and attribute values between your e-commerce store and an external system.
- URL. URL import is another option provided by the module. The extension allows you to import files with attributes using a direct link to them.
Note that you can freely import compressed data since the extension extracts it automatically.
Alternative ways of attribute import & export
In addition to file transfers, the Improved Import & Export Magento 2 extension offers several alternative methods of attribute import and export. If you have attributes, their sets, or values stored in Google Sheets, our extension lets you import them without any headaches. The process of Google Sheets import is illustrated below:
Besides, you can avoid files and intermediaries due to the ability to establish SOAP API, REST API, and GraphQL API connection between Magento 2 and the system that contains the necessary information.
Advanced Usability Features
Now, when you know all possible ways of importing/exporting product attributes into/from your e-commerce store with the help of the Improved Import & Export Magento 2 extension, we should tell a few more words about core usability improvements the module offers. First of all, it is a flexible mapping interface.
Do you know that it is impossible to take attributes of an external system and import them into Magento 2? Before doing that, you should edit the third-party output making it suitable for the requirements of the e-commerce platform your store is based on.
Usually, this process consists of a manual data editing which can be endless depending on the size of imported files. As we’ve mentioned at the beginning, the number of product attributes may be extremely huge so that you’ll need weeks to edit all of them.
To save your time, money, and effort, we’ve introduced a convenient mapping interface as a part of the Improved Import & Export Magento 2 extension. You can use it to map third-party attributes to Magento 2 attributes in a user-friendly manner right in the Magento admin. Thus, the need to edit data files is eliminated. Consequently, you should spend much less time on preparations. Another essential feature of the mapping interface is the ability to save a created scheme for further usage. Thus, you don’t need to recreate it in case of a new import process. In case of the default Magento tools and most third-party solutions, you still have to repeat file editing before every update.
The Improved Import & Export Magento 2 extension lets you match attributes as follows:
To simplify that process more, we’ve introduced premade mapping schemes – presets. You should select one suitable for your integration and apply it matching attributes in a few clicks. The process is displayed below:
Please, contact our support regarding mapping presets for your specific business case. Leave your requests here:
While attribute import/export is usually a one-time procedure, we cannot forget about the ability to create an update schedule within the Improved Import & Export extension. This feature is beneficial for all other update types. For instance, you need to import product data updating your Magento 2 database regularly. The default tools or most third-party extensions don’t let you automate that process. But the Improved Import & Export Magento 2 module is an exception.
The extension supports cron allowing you to create any custom schedule of updates. Apply the default cron syntax to configure update time suitable for your business requirements. Alternatively, you can choose one of the predefined intervals which can be customized as well. Besides, the Improved Import & Export enables you to create import/export jobs for a manual run only. Such tasks are entirely suitable for transferring attributes, attribute sets, and attribute values due to the reasons mentioned above.
Also, note that it is possible to launch every scheduled update asynchronously. For instance, you need to import data right now, but the corresponding process is planned for tomorrow. With the Improved Import & Export Magento 2 extension, you don’t need to wait or create a new import job. Instead, you can launch the update in the asynchronous mode.
Below, you can see how to create a schedule of updates:
It is also important to mention that all usability improvements – mapping and scheduling – can be fully leveraged with all file formats, data sources, and alternative ways of import/export. Feel free to use them to improve the way you import/export attributes, attribute sets, or attribute values. You can discover more features of the Improved Import & Export extension in the following video:
As you can see, the Improved Import & Export extension not only extends the default boundaries of Magento 2 by introducing the ability to import/export attributes and all the corresponding data but it also essentially simplifies these processes in comparison to the existing ways. For any further information about the plugin, follow this link:'