Installation

« Go back to Documentation

Installation of Magento WordPress Integration v2.1.4 requires editing a core Magento file. We will make a copy of this file so that if Magento is updated in the future it will not be overwritten. This first step is massively important, and cannot be missed out.

  1. Deactivate a Magento function that conflicts with one in WordPress.
  2. Navigate to ~/your-magento/app/code/core/Mage/Core/functions.php
  3. Duplicate that file and place the new version in ~/your-magento/app/code/local/Mage/Core/functions.php – this file will now be used over the original, and will remain during Magento upgrades.
  4. Open the newly created file and browse to around line 90, where you will find this:
    function __() { return Mage::app()->getTranslator()->translate(func_get_args()); }
  5. Replace the entire function, which usually spans over approximately 3 lines, with:
    if(!function_exists('__')) { function __() { return Mage::app()->getTranslator()->translate(func_get_args()); } }
  6. Upload the file to your server, and you are done!

Installing the Plugin

The next step is to install the plugin on your WordPress website.

Method 1

Install the Magento WordPress Integration plugin through the WordPress admin area, via search.

  1. Log in to your WordPress admin area.
  2. Click PluginsAdd New.
  3. Search for “Magento WordPress Integration”.
  4. Click install on the result created by James Kemp.
  5. Once installation is complete, click Activate plugin.

Method 2

Install the Magento WordPress Integration plugin through the WordPress admin area, via upload.

  1. Download the plugin from the WordPress Plugin Repository.
  2. Log in to your WordPress admin area.
  3. Click Plugins → Add New.
  4. Click Upload.
  5. Search for the file you just downloaded from the WordPress Plugin Repository.
  6. Click Install Now.
  7. Once installation is complete, click Activate plugin.

What’s Next?

The plugin is now installed! Assuming everything went well, you can continue to the setup instructions.

Continue to Setup

If your site is now blank, make sure you followed the first steps correctly. If you are still having issue, please visit the FAQ section, or submit a support thread.