Hi,
We noticed that the setting “Use Parent Category Settings” under Design tab on admin category page is not migrated properly.
In our M1 instance, it is set to “No” but after migration to M2 most of the category are set to “Yes”. Can you let us know how to fix this?
5 answers
Also, if we manually change this in M2, does the incremental upgrade overwrite this again?
Hi there,
In our M1 instance, it is set to “No” but after migration to M2 most of the category are set to “Yes”. Can you let us know how to fix this?
You can try follow these steps to keep the original value in M1 on that setting:
1. Open the PHP file at the path: pub/ub-tool/protected/controllers/Step4Controller.php
and find the code line:
UBMigrate::getMage1AttributeId('custom_use_parent_settings', $entityTypeId) => 1,
then replace it with this code line:
// UBMigrate::getMage1AttributeId('custom_use_parent_settings', $entityTypeId) => 1,
2. Once done, please run delta migration in step #4 with ‘update’ mode:
php -f bin/ubdatamigration run --step=4 --mode=update;
Regards,
Mall.
I made the changes in mentioned file. But If i run the below command, will it import all the categories again? Or just update that “custom_use_parent_settings” setting?
php -f bin/ubdatamigration run --step=4 --mode=update;
Also, I asked one more question about incremental update. Please reply on that as well.
Hi there,
But If i run the below command, will it import all the categories again? Or just update that “custom_use_parent_settings” setting?
That CLI command will delta update for all information of migrated categories.
Regards,
Mall.