+ All Categories
Home > Presentations & Public Speaking > Federico Soich - Upgrading Magento Version

Federico Soich - Upgrading Magento Version

Date post: 16-Apr-2017
Category:
Upload: meet-magento-italy
View: 221 times
Download: 3 times
Share this document with a friend
33
Transcript
Page 1: Federico Soich - Upgrading Magento Version
Page 2: Federico Soich - Upgrading Magento Version

Upgrading Magento Version

Page 3: Federico Soich - Upgrading Magento Version

Overview

Upgrading magento 1.7 to 1.9upgrading magento core

upgrading lib js and skin

Migrating database data to 2.0Ubertheme script

How script migrate entities step by step

Migrating module1.0 original module

2.0 new module

Page 4: Federico Soich - Upgrading Magento Version

step 1

Full database and files backup. Stop cron.

step 2

Enable exception logging. Set indexers update to save.

step 3

Clear cache. Override new core files and new js/skin/lib files.

step 4

Refresh to update database. Run url redirect script.

step 5

Reindex. Fix common 1.9 upgrade issues.

Page 5: Federico Soich - Upgrading Magento Version

Common 1.9 upgrade issues

1. CSFR protection in register and login pages (add formkey)

2. adminhtml and ACL error 404 issues

3. app/code/core/Mage/

Googlecheckout

Page 6: Federico Soich - Upgrading Magento Version

Migrating to Magento 2

1. Migrating database data

2. Migrating Magento_Hello module

Page 7: Federico Soich - Upgrading Magento Version

1.9 magento with sample data localhost/magento/

Page 8: Federico Soich - Upgrading Magento Version

53 customers in sample data

Page 9: Federico Soich - Upgrading Magento Version

2.1 magento with empty data localhost/MAGE2/

Page 10: Federico Soich - Upgrading Magento Version

Empty customers in localhost/MAGE2/

Page 11: Federico Soich - Upgrading Magento Version

Step 1: Database settings

Page 12: Federico Soich - Upgrading Magento Version

Step 2: Migrate Websites and Stores

Page 13: Federico Soich - Upgrading Magento Version

Step 3: Migrate Attributes

Page 14: Federico Soich - Upgrading Magento Version

Step 4: Migrate Categories

Page 15: Federico Soich - Upgrading Magento Version

Step 5: Migrate Products

Page 16: Federico Soich - Upgrading Magento Version

Step 6: Migrate Customers

Page 17: Federico Soich - Upgrading Magento Version

Step 7: Migrate Sales Data

Page 18: Federico Soich - Upgrading Magento Version

Step 8: Migrate Reviews and Ratings Data

Page 19: Federico Soich - Upgrading Magento Version

Step 9: Migrate Other Data

Page 20: Federico Soich - Upgrading Magento Version

Step 10: Reindex by command line

Page 21: Federico Soich - Upgrading Magento Version

Magento 2 sample imported customers

Page 22: Federico Soich - Upgrading Magento Version

Migrating a Magento Module

1. Structure of the module

2. 1.0 version Magento hello

3. Differences

4. 2.0 version steps

Page 23: Federico Soich - Upgrading Magento Version

Magento 1.0 Hello World moduleModule files

app/etc/modules/Magento_Hello.xml

app/code/local/Magento/Hello/etc/config.xml

app/code/local/Magento/Hello/controllers/IndexController.php

app/code/local/Magento/Hello/Block/Hello.php

app/design/frontend/default/default/layout/hello.xml

app/design/frontend/default/default/template/hello.phtml

Page 24: Federico Soich - Upgrading Magento Version

Magento 1.0 Magento 2.0

Folder app/code includes subfolders: core, community, local

Folder app/code includes subfolders Magentoand Zend. In Magento 1.0, Magento and Zend are subfolders of the folder core

Codes created by developers are located at app/code/local or app/code/community

Codes created by developers are written directly in app/code. There is no difference between local and community

Module declaration file is a xml file in app/etc/modulesEg: Module Checkout in Magento Core is declared in app/etc/modules/Mage_All.xml

Module declaration file is always module.xmlwhich is written directly to folder etc in the moduleEg: module Checkout in Magento Core is declared in app/code/Magento/Checkout/etc/module.xml

Layout and template are saved in folder app/designEg: app/design/frontend/default/default/layout

Layout and template are saved in the folder “View” in the module. The folder is the same level with some folders like: Block, Controller, Helper, Model, etc. in the moduleEg: app/code/Magento/Hello/view/frontend/layout

Page 25: Federico Soich - Upgrading Magento Version

Step 1Module declaration app/code/Magento/Hello/etc/module.xml

Page 26: Federico Soich - Upgrading Magento Version

Step 2Create controller and action:Folder Index plays the role of controller, while Index.php is action. The executive function of action Index is execute()

Page 27: Federico Soich - Upgrading Magento Version

Step 3Create a Block:app/code/Magento/Hello/Block/Hello.php

Page 28: Federico Soich - Upgrading Magento Version

Step 4Write configuration file:app/code/Magento/Hello/etc/frontend/routes.xml

now, config.xml only configures the default configuration value in tag <default>

Page 29: Federico Soich - Upgrading Magento Version

Step 5Create a Block:app/code/Magento/Hello/Block/Hello.php

Page 30: Federico Soich - Upgrading Magento Version

Step 6Write a layout xml file:app/code/Magento/Hello/view/frontend/layout/hello_index_index.xml

Page 31: Federico Soich - Upgrading Magento Version

Step 7Create success.phtml file as reporting in layout file:app/code/Magento/Hello/view/frontend/templates/success.phtml

Page 32: Federico Soich - Upgrading Magento Version

Step 8Test itrun http://localhost/magento20/hello/index/index

Page 33: Federico Soich - Upgrading Magento Version

Thanks !!Any questions ?


Recommended