"Use Parent Category Setting" migration issue

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

Profile photo of Mall Staff 181800.00 $tone August 12, 2022
Public

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.
 
 

#2
Profile photo of bigpixel 550.00 $tone August 17, 2022
Public

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;
#3
Profile photo of Mall Staff 181800.00 $tone August 17, 2022
Public

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.

#5

Please login or Register to Submit Answer

Written By

Comments