federico soich - upgrading magento version

Post on 16-Apr-2017

222 Views

Category:

Presentations & Public Speaking

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

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.

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

Migrating to Magento 2

1. Migrating database data

2. Migrating Magento_Hello module

1.9 magento with sample data localhost/magento/

53 customers in sample data

2.1 magento with empty data localhost/MAGE2/

Empty customers in localhost/MAGE2/

Step 1: Database settings

Step 2: Migrate Websites and Stores

Step 3: Migrate Attributes

Step 4: Migrate Categories

Step 5: Migrate Products

Step 6: Migrate Customers

Step 7: Migrate Sales Data

Step 8: Migrate Reviews and Ratings Data

Step 9: Migrate Other Data

Step 10: Reindex by command line

Magento 2 sample imported customers

Migrating a Magento Module

1. Structure of the module

2. 1.0 version Magento hello

3. Differences

4. 2.0 version steps

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

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

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

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()

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

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

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

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

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

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

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

Thanks !!Any questions ?

top related