Good morning,
We have done a first migration. But now we are changing attribute-sets of the products in M1.
Is it possible to have this change in attribute sets being processed in the delta migration?
Best regards, Roy
3 answers
Hi Roy,
Is it possible to have this change in attribute sets being processed in the delta migration?
It will need a tweak code to run the delta update for the changes of migrated product’s attribute set.
What is the version of our migration module in your instance now?
Regards,
Mall.
Version 3.2.2 (And Magento 2.3.3)
Hi Roy,
Version 3.2.2 (And Magento 2.3.3)
Please try with the following steps:
+ Open the PHP file at: pub/ub-tool/protected/controllers/Step5Controller.php
and find the code lines:
//update
$product2 = Mage2CatalogProductEntity::model()->find("entity_id = {$productId2}");
$product2->sku = $product->sku;
and replace it with:
//update
$product2 = Mage2CatalogProductEntity::model()->find("entity_id = {$productId2}");
$product2->sku = $product->sku;
$product2->attribute_set_id = isset($mappingAttributeSets[$product->attribute_set_id]) ? $mappingAttributeSets[$product->attribute_set_id] : 0;
+ Once done, run the delta migration in step #5 with the ‘update’ mode:
php -f bin/ubdatamigration run --step=5 --mode=update;
Regards,
Mall.