Migrating Magento 1.x to Magento 2.0

Page 1

KNOWARTH Technologies Pvt. Ltd.

www.knowarth.com marketing@knowarth.com


Presenters

Shabbir Challawala Sr. • Consultant 6+ Years of Experience in PHP (PHP) • 4+ years of Experience in Magento

Executed projects in both Community and Enterprise Edition

Shikha Bhadouria Marketing Consultant

• •

Content & Inbound marketing Branding


Who We Are

DELIVERING EXCELLENCE through One-stop-solution approach 160+ Members’ Team

Thought Leaders

7 Books Authored & Reviewed

90+ Project Served in last Two Years to 40+ Clients Delivered on Time, within Budget

© 2016 KNOWARTH Technologies Pvt. Ltd.

Among

50 Fastest Growing Startups in India (SiliconIndia)

20 Most promising IT Companies in INDIA (CIO Review)

Worked on Projects for Portal, E-Commerce, Digital Marketing, UX/UI, ERP, Mobility, Product Engineering, Cloud Computing and RIMS

3


Worldwide Customers

Canad a

Norwa y USA

France Middle East

India

Austral ia

USA Australia California | Georgia | Florida | New York Sydney | Melbourne

© 2016 KNOWARTH Technologies Pvt. Ltd.

Middle East Dubai

Europe United Kingdom | Norway | France

4


Magento Services at KNOWARTH

Magento Theme Development

Magento Migration

Magento Integration Services

Magento Performance Optimization

Module Development

Magento Support


KNOWARTH's Ecommerce Product - Commercium

Fashion Store

Home Decor Store

Restaurant

Auto Store

Kids Store


Other core Technology Services

Enterprise Portal Development

ERP Solution

Cloud Hosting & management

Custom Application Development

Remote Infrastructure Management Services

Mobile Application Development

UI / UX Design & Development

Portal Performance and Assessment Tuning Š 2016 KNOWARTH Technologies Pvt. Ltd.

7


Our Partners

© 2016 KNOWARTH Technologies Pvt. Ltd.

8


Features Of Magento 2

Enhanced and Advanced coding Architecture

More extensive APIs

Upgrading Magento become easy

Enhanced checkout flow

Easier checkout process

Support Full page caching out of box

Less preprocessor based UI library

Improved indexing

Performance Toolkit

Built-in support for Varnish cache

© 2016 KNOWARTH Technologies Pvt. Ltd.

9


Why Migrate to Magento 2.0

Performance Improvements

Built-in support for varnish

Better Checkout

Use of Advanced technology stack

Revamped admin interface

Magento will stop giving support to Magento 1 after 2018

Š 2016 KNOWARTH Technologies Pvt. Ltd.

10


Who Should Upgrade

Merchants who wants to keep their Website up-to-date with latest Magento version

Merchants who wants to take Benefit of added features of Magento

Merchants who is having performance issues with the current Magento website

Š 2016 KNOWARTH Technologies Pvt. Ltd.

11


Migration Process

Migration Process

Migrating Code

Migrating Database

Migrating Extensions

Migrating Settings

Migrating Themes

Migrating Sales Info, Catalog, Customers, Promotional Info,

Migrating Custom Development

© 2016 KNOWARTH Technologies Pvt. Ltd.

CMS Pages


Migration Process

Magento’s Migration Process does not Includes 

Migrating Media

Migrating Store Front Design (Css Files, Js Files, Static Images)

Migrating ACL (API Roles and Permission)

Migrating Admin Users

© 2016 KNOWARTH Technologies Pvt. Ltd.


Migration Steps

Step 1

Customization, Extension Integration, Migration Dry Run

Step 7

Test Magento 2 Site

Step 8

Š 2016 KNOWARTH Technologies Pvt. Ltd.

Step 3

Start Migration Process & Stop Admin Activity

Step 6

Start Incremental Updates

Test Magento 2 Site

Step 2

Stop Crons on Magento 1 Site

Step 5

Run Indexes and Flush Cache

Step 9

Stop Incremental Update, cache and Re-index

Step 4

Copy Media Files and Css, Js File data on Magento 2 Store

Step 10

Point Your DNS to Magento 2 Site And Site is Running

14


Prerequisite for Migration

Downloading Code Migration Tool 

Download code migration tool from https://github.com/magento/code-migration to your web root directory

Apply composer install command to inside code-migration folder to update and download dependency

Migrating from Magento 1.x to 2.0 has been made easy by the tools provided

Before we start the migration we should download those tools

© 2016 KNOWARTH Technologies Pvt. Ltd.

15


Prerequisite for Migration

Downloading Code Migration Tool 

source directory containing code to be migrated.

source directory should not have core files and must be in magento's directory structure

destination directory where converted code will be copied

magento1 directory containing magento's vanilla version and custom code that need to be migrated

directory containing magento 2 vanilla version

© 2016 KNOWARTH Technologies Pvt. Ltd.


Prerequisite for Migration

Downloading Data Migration Tool 

Need to setup magento 2 system no need to start cron jobs

Collect DB details of both Magento 1.x and Magento 2.x system

get the version of your magento2.x and Magento 1.x

The versions of the Data Migration Tool and your Magento software must exactly match.

© 2016 KNOWARTH Technologies Pvt. Ltd.

17


Prerequisite for Migration

go to the root directory of magento 2 and apply commands as shown below.

Command 1:  composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool

Command 2:  composer require magento/data-migration-tool:<version>  <version> is the version of your magento 2.x system

© 2016 KNOWARTH Technologies Pvt. Ltd.

18


Prerequisite for Migration 

go to vendor/magento/data-migration-tool/etc/<migration edition>/<ce or version>

rename config.xml.dist to config.xml and open the file

update db info for source and destination

© 2016 KNOWARTH Technologies Pvt. Ltd.

19


Migration Extensions

Find out if extension provider has created module in m2

If any change in db schema of m2 module then need to add it in data migration configuration file (map.xml)

If m2 version of extension is not available then need to migrate module manually or through code migration tool

© 2016 KNOWARTH Technologies Pvt. Ltd.

20


Code Migration Tool

© 2016 KNOWARTH Technologies Pvt. Ltd.

Code migration has been divided in four steps

Directory Structure Migrate

Migrating Layout

Migrating Configuration

Migrating PHP Code

21


Code Migration Tool

After configuring code migration tools, below command need to be run for migrating  php bin/migrate.php migrateModuleStructure <src> <dst> .

© 2016 KNOWARTH Technologies Pvt. Ltd.

22


Code Migration Tool 

After configuring code migration tools, below command need to be run for migrating  php bin/migrate.php migrateModuleStructure <src> <dst> .

It will create module structure at destination to allow code migration in next steps)  php bin/migrate.php convertLayout <dst>

© 2016 KNOWARTH Technologies Pvt. Ltd.


Code Migration Tool This will convert layout files as per magento 2 standard, individual xml for each action)  

php bin/migrate.php convertConfig <dst> . This step will convert configuration to magento 2, it will create separate files for events, routes, system configuration etc.  php bin/migrate.php convertPhpCode <dst> <m1> <m2> . (This is final step and will copy business logic from m1 version to m2 version, basically convert syntax of mage class to class path as per m2 standard)

© 2016 KNOWARTH Technologies Pvt. Ltd.


Theme Migration

There are no default tools available for theme migration

Theming in magento 2 is completely different then magento 1 as magento 2 is using less pre-processors and modularise structure of template

Will require frontend developer to migrate theme to m2

© 2016 KNOWARTH Technologies Pvt. Ltd.


Data Migration Tool

Migrating Data is divided in three parts:

Migrating Settings

Migrating Data

Migrating Delta

Š 2016 KNOWARTH Technologies Pvt. Ltd.

26


Data Migration Tool

Migrating Settings 

Some settings are ignored, some settings path need to be renamed, some setting requires changing value like encrypted

  

© 2016 KNOWARTH Technologies Pvt. Ltd.

data as key changes in magento2.  vendor\magento\data-migration-tool\etc\ce-toce\setting.xml file contains information of settings changes If any other custom settings has been generated, it will transfer automatically to the magento2 as migration process run. Need to add in ignore list if do not want it in magento2 Changes made in other core settings will be automatically be transferred to magento2 Command to run Setting migration Configuration which has not been modified in magento 1.x will not be migrated. they may be different in magento 2  php bin/magento migrate:settings --reset D:\xamp\htdocs\m2\vendor\magento\data-migrationtool\etc\ce-to-ce\1.9.2.1\config.xml .

27


Data Migration Tool Migrating Data 

If any custom column added need to add it in map.xml for ignoring it or transforming it to magento2.

You can rename document (table), rename field using field_rules =>move or transform using handlers. For custom logic, you may have to write custom handlers  php bin/magento migrate:data --reset D:\xamp\htdocs\m2\vendor\magento\datamigration-tool\etc\ce-to-ce\1.9.2.1\config.xml .

© 2016 KNOWARTH Technologies Pvt. Ltd.

28


Data Migration Tool

Migrating Delta 

While migrating live sites, there are some data which keep updating throughout day like order information, customer information etc

So to migrate those changes which has been made post migration, magento provide Delta migration

© 2016 KNOWARTH Technologies Pvt. Ltd.

29


Benchmarking

177k Products

355k Orders

214k

Customers

Performance Results 

Settings migration time: ~10 mins

Data migration time: ~9 hrs (all data except URL Rewrites, ~85% of total data)

Site downtime estimate: A few minutes to reindex and change DNS settings. Additional time required to “warm up” the page cache

© 2016 KNOWARTH Technologies Pvt. Ltd.


KNOWARTH’s Migration Projects Executed

Online Grocery Store

6000 Products

570

Customers

1000+ Orders

Online Art Gallery

2500

250

Products

Customers

42

100+

categories

Email us: us: Email marketing@knowarth.com marketing@knowarth.com

Orders


© 2016 KNOWARTH Technologies Pvt. Ltd.


THANK YOU

KNOWARTH Technologies Pvt. Ltd. INDIA: 11, Aryan Corporate Park, Nr. Shilaj Railway Crossing, Thaltej, Ahmedabad – 380059, Gujarat, INDIA USA: One Commerce Center, 1201 Orange Street #600, Wilmington, DE – 19899 Email: marketing@knowarth.com | Website: www.knowarth.com

© 2016 KNOWARTH Technologies Pvt. Ltd.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.