Migrating from Magento 1 to Magento 2
-
Upload
matthias-zeis -
Category
Internet
-
view
1.830 -
download
0
Transcript of Migrating from Magento 1 to Magento 2
![Page 1: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/1.jpg)
Migrating from Magento 1 to Magento 2 Matthias Zeis
2016-05-13
![Page 2: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/2.jpg)
Vienna, Austria mzeis mzeis mzeis matthias-zeis.com
![Page 4: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/4.jpg)
Get the best out of Magento 1 Magento 2
![Page 5: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/5.jpg)
WHAT? WHEN? HOW?
![Page 7: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/7.jpg)
Treat it like a platform switch
![Page 8: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/8.jpg)
Treat it like a platform switch
because it is
![Page 9: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/9.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 10: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/10.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 11: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/11.jpg)
Don't build a 1:1 copy of your current store
![Page 12: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/12.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 13: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/13.jpg)
Decide what you really need to keep
![Page 14: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/14.jpg)
Decide what you really need to keep
Don‘t forget your data!
![Page 15: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/15.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 16: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/16.jpg)
Re-think your strategy and goals
![Page 17: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/17.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 18: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/18.jpg)
Stuff you didn't implement in M1
![Page 19: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/19.jpg)
New features in Magento 2
![Page 20: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/20.jpg)
migration scope
no 1:1 copy
streamline
strategy and goals
new features
![Page 22: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/22.jpg)
![Page 23: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/23.jpg)
![Page 24: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/24.jpg)
![Page 25: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/25.jpg)
![Page 26: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/26.jpg)
![Page 27: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/27.jpg)
![Page 28: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/28.jpg)
Get your timeline right!
![Page 29: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/29.jpg)
migration
current state
migration scope
timeline
budget
![Page 31: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/31.jpg)
MIGRATING CODE
3rd party code Your code
![Page 32: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/32.jpg)
3rd party functionality
DELETE
needed in new store?
missing in M2 core?
USE M2 CORE
continue with vendor?
other 3rd party or custom?
M2 extension available?
OTHER 3RD PARTY
DO IT YOURSELF
USE M2 EXTENSION
no no
3rd party custom
yes yes yes yes
no no
![Page 33: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/33.jpg)
Your M1 functionality
DELETE
needed in new store?
missing in M2 core?
USE M2 CORE
3rd party or custom?
3RD PARTY DO IT YOURSELF
no no 3rd party custom
yes yes
![Page 34: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/34.jpg)
rewrite extension
automated testing
document M1 behaviour
platform independent code
coding standards
![Page 35: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/35.jpg)
rewrite extension
automated testing
document M1 behaviour
platform independent code
coding standards
Awesome integer_net article series: https://www.integer-net.com/magento-1-magento-2-shared-code-extensions/
![Page 36: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/36.jpg)
migrate extension
clean M1 code
document M1 behaviour
platform independent code
refactor
![Page 38: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/38.jpg)
<src> Code to be migrated (excluding core)
Prerequisites
<m1> M1 project code including vanilla core
<m2> M2 vanilla core
<dst> Empty directory for generated code
![Page 39: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/39.jpg)
1 Migrate directory structure php bin/migrate.php migrateModuleStructure <src> <dst>
2 Migrate layout php bin/migrate.php convertLayout <dst>
3 Migrate configuration php bin/migrate.php convertConfig <dst>
4 Migrate PHP code php bin/migrate.php convertPhpCode <dst> <m1> <m2>
![Page 40: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/40.jpg)
Does Namespaces
Configuration XML files
Layout XML files
Magento code interaction
Module directory structure
![Page 41: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/41.jpg)
Does Doesn‘t Namespaces
Configuration XML files
Layout XML files
Magento code interaction
Module directory structure
Template files & design
Changes in business logic
![Page 42: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/42.jpg)
Don‘t get confused
![Page 43: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/43.jpg)
![Page 44: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/44.jpg)
Configuration: check what was (not) converted
![Page 45: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/45.jpg)
Dependencies are not migrated(?)
![Page 46: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/46.jpg)
USE OUT OF THE BOX
MAPPING
Is your Magento 1 version current?
no yes GENERATE YOUR OWN MAPPING
![Page 47: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/47.jpg)
1 php bin/utils.php generateClassDependency <m1>
2 php bin/utils.php generateClassMapping <m1> <m2>
3 php bin/utils.php generateModuleMapping <m1> <m2>
4 php bin/utils.php generateTableNamesMapping <m1>
5 php bin/utils.php generateViewMapping <m1> <m2>
6 php bin/migrate.php generateAliasMapping <m1> <m2>
7 php bin/migrate.php generateAliasMappingEE <m1> <m2>
![Page 48: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/48.jpg)
Generating mappings yourself can be tricky
![Page 49: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/49.jpg)
MIGRATING DATA
Core data 3rd party data
Your data
![Page 50: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/50.jpg)
Official data migration tool
magento/data-migration-tool
![Page 51: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/51.jpg)
1 Migrate settings php bin/magento migrate:settings /path/to/config.xml
2 Migrate data php bin/magento migrate:data /path/to/config.xml
3 Migrate delta php bin/magento migrate:delta /path/to/config.xml
![Page 52: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/52.jpg)
Does Products & categories
Orders & invoices
Shipments & credit memos
Core configuration
Customers
Wishlists & ratings
![Page 53: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/53.jpg)
Does Doesn‘t Products & categories
Orders & invoices
Shipments & credit memos
Core configuration
Customers
Catalog DB layout updates
Web API credentials
Wishlists & ratings
Admin users & privileges
Media files
Custom data
3rd party data
![Page 54: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/54.jpg)
Add mappings for custom data and 3rd party
extensions
![Page 55: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/55.jpg)
A FEW LEARNINGS
(a.k.a. what bit me)
![Page 56: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/56.jpg)
Massive tool Team is working on it
![Page 57: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/57.jpg)
Massive tool Team is working on it
Schedule time
![Page 58: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/58.jpg)
Backup database after install
![Page 59: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/59.jpg)
Make tool run through first, then fix
![Page 60: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/60.jpg)
![Page 61: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/61.jpg)
Keep config files outside migration tool repo
![Page 62: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/62.jpg)
Divide config files
![Page 63: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/63.jpg)
Extensions can‘t plug in (yet)
![Page 64: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/64.jpg)
Issues with long-living stores
![Page 65: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/65.jpg)
Examine deltas
![Page 66: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/66.jpg)
Alternatives ubertheme/module-ubdatamigration Alternative to official data migration tool
firegento/FireGento_FastSimpleImport2 Wrapper for Magento 2 ImportExport functionality
firegento/FireGento_ExtendedImport2 Extended features for Import (ported from AvS_FastSimpleImport)
![Page 67: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/67.jpg)
1 Be pragmatic
2 Work together
3 Learn together
![Page 68: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/68.jpg)
Imagine 2016 migration tool presentation by Sergii Shymko http://imagine.magento.com/sites/default/files/Mon.Margaux1.1630.SS7%2C8.Technical.pdf Migration diary by Max Pronko http://www.maxpronko.com/story
Resources
![Page 69: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/69.jpg)
Official data migration guide http://devdocs.magento.com/guides/v2.0/migration/bk-migration-guide.html
Data migration experience by Marcin Szterling (English, Youtube) Marcin Szterling - Data Migration from Magento 1 to Magento 2
Resources
![Page 70: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/70.jpg)
Data migration experience by Sven Wappler (German) https://www.wapplersystems.de/blog/slides-zum-vortrag-magento-002-migriere-an-einem-anderen-tag-sind-online/
Data migration experience by Eugen Bogdanovich (English) http://oyenetwork.com/articles/data-migration-to-magento2-case-study/
Resources
![Page 71: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/71.jpg)
Matthias Zeis mzeis mzeis mzeis matthias-zeis.com
Thank you! Questions?
![Page 72: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/72.jpg)
Matthias Zeis mzeis mzeis mzeis matthias-zeis.com
Thank you! Questions?
Slides will be online: http://www.slideshare.net/mzeis/
![Page 73: Migrating from Magento 1 to Magento 2](https://reader031.fdocuments.in/reader031/viewer/2022020213/589a5c771a28abc3438b5443/html5/thumbnails/73.jpg)
Matthias Zeis mzeis mzeis mzeis matthias-zeis.com
Thank you! Questions?
Slides will be online: http://www.slideshare.net/mzeis/
LimeSoda is hiring! https://www.limesoda.com/jobs/