🛒 Magento Migration

Migrate categories from Magento 1 to Magento 2 with multi-store support

📡 Database Connections

Magento 1: {{ $connectionTest['magento1'] ? '✓ Connected' : '✗ Failed' }} @if(!$connectionTest['magento1'] && isset($connectionTest['magento1_error']))
{{ $connectionTest['magento1_error'] }}
@endif
Magento 2: {{ $connectionTest['magento2'] ? '✓ Connected' : '✗ Failed' }} @if(!$connectionTest['magento2'] && isset($connectionTest['magento2_error']))
{{ $connectionTest['magento2_error'] }}
@endif

📊 Statistics

{{ $m1Stores->count() }}
Magento 1 Stores
{{ $m2Stores->count() }}
Magento 2 Stores
{{ $m1CategoriesCount }}
Magento 1 Categories

🔄 Store Mapping

Map each Magento 1 store to its corresponding Magento 2 store:

@foreach($m1Stores as $m1Store)
M1 Store: {{ $m1Store->name }} ({{ $m1Store->code }})
@endforeach
@if($m1Stores->isEmpty())

No Magento 1 stores found. Please check your database connection.

@endif

⚡ Actions

What happens when you click "Start Migration"?

The migration process will:

  • Migrate category structure: Create categories in Magento 2 based on the hierarchy from Magento 1, preserving parent-child relationships and positions
  • Migrate category attributes: For each mapped store, migrate category names, URL keys, and active status from Magento 1 to Magento 2
  • Preserve hierarchy: Maintain the exact category tree structure with proper levels and paths
  • Handle existing categories: If a category with the same name and parent already exists in Magento 2, it will be reused instead of creating a duplicate
  • Generate logs: Provide detailed migration logs showing which categories were added, updated, or encountered errors

⚠️ Warning: This will modify your Magento 2 database. Make sure you have a backup before proceeding.

Migration in progress...

📋 Migration Logs

Detailed logs showing which categories were added, updated, or encountered errors during migration:

No migration logs yet. Click "Start Migration" to begin.

📊 Category Statistics

{{ $m1CategoriesCount }}
Magento 1 Categories
{{ $m2CategoriesCount }}
Magento 2 Categories
{{ $m1CategoriesCount - $m2CategoriesCount }}
Difference

⚠️ Magento 2 Categories Not Found in Magento 1

These categories exist in Magento 2 but do not have a matching name in Magento 1:

@if($m2CategoriesNotInM1->count() > 0)
@foreach($m2CategoriesNotInM1 as $category) @endforeach
ID Category Name Level Status Root Category Path
{{ $category->entity_id }} {{ $category->name ?? 'Unnamed Category' }} {{ $category->level ?? 'N/A' }} {{ ($category->is_active ?? 0) ? 'Active' : 'Inactive' }} @if(isset($category->root_category_name) && $category->root_category_name !== 'N/A') {{ $category->root_category_name }} @if(isset($category->root_category_id)) (ID: {{ $category->root_category_id }}) @endif @else N/A @endif {{ $category->path ?? 'N/A' }}
Total: {{ $m2CategoriesNotInM1->count() }} {{ Str::plural('category', $m2CategoriesNotInM1->count()) }} found in Magento 2 but not in Magento 1.
@else
✓ All Magento 2 categories have matching names in Magento 1.
@endif

🌳 Category Trees

View category hierarchies from Magento 1 and Magento 2

Magento 1 Categories

Loading categories...

Magento 2 Categories

Loading categories...