How to upgrade Magento from 1.7 to 1.9

风流意气都作罢 提交于 2020-01-15 12:13:23

问题


I need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, I was just wondering what is the easiest way to upgrade without breaking my website.

Thank you


回答1:


Upgrade Roadmap for CE 1.9.0.1 from 1.7

  1. take a backup of current database and current 1.7 code.
  2. download latest magento from the http://www.magentocommerce.com/download
  3. remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9.
  4. now from your 1.7 merge your following folders into the 1.9

• Community app/code/community

• Local app/code/local

• Media

• your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>)

• custom folders from Skin (both for adminhtml and frontend).

• copy your custom xml files from app/etc/modules/ to current app/etc/modules/

• any custom admin theme folder from adminhtml/default/yourtheme.

• copy your custom folders from adminhtml/default/default/ (1.7) to adminhtml/default/default/ (1.9).

• custom js files if any from app/js/.

  1. now go to app/etc/local.xml.Edit database details there. put your database username and password and database name.
  2. now check the site. it's done.



回答2:


Upgrade directly:

Admin panel -> System -> Magento Connect -> Magento Connect Manager

Check for Upgrades

Mage_All_Latest -> select Upgrade to 1.9

Uupgrade via ssh :

Commands :

1: ./mage list-upgrades

2: ./mage config-set preferred_state stable

3: ./mage upgrade-all --force (if not working thenuse 4)

4: ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force

5: php -f ./index.php

For more info, check the below link:

https://astrio.net/blog/magento-upgrade-guide/



来源:https://stackoverflow.com/questions/28809425/how-to-upgrade-magento-from-1-7-to-1-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!