Fast product import library for Magento 2
// momentum
// why it's here
- Active: last commit today
- Around since 2018 and still shipping
// how to help
// readme
BigBridge Product Import
This library imports product data into Magento 2 via direct database queries. It has these main features
- A programming library to import products
- An CLI command for product import via XML file
- A web API service for product import via Post Request with XML
- A tool to update url_rewrites
Note
The aim of this library is speed. If you find that Magento 2โs product importer is too slow, consider using this library.
Experiment with the library in a safe webshop. Make sure to create a database backup before you start.
Sample code
Let me show you a piece of code to give you an impression what it is like to use this library:
$importer = $factory->createImporter($config);
foreach ($lines as $i => $line) {
$product = new SimpleProduct($line[1]);
// global eav attributes
$global = $product->global();
$global->setName($line[0]);
$global->setPrice($line[2]);
// German eav attributes
$german = $product->storeView('de_store');
$german->setName($line[3]);
$german->setPrice($line[4]);