How to integrate WordPress into Magento?
The Magento WordPress Integration plugin for WordPress primarily allows you to initiate an instance of your local Magento installation in your WordPress theme. You will be able to add any Magento blocks to your WordPress theme using the Magento WordPress Integration plugin including static blocks created through the Magento admin area and the ones you have created yourself. This allows you to communicate with your Magento store to bring in certain elements that are usually unavailable, such as the navigation, mini shopping cart, static blocks, and logos. The Magento WordPress Integration plugin also allows you to show any number of Magento products in a WordPress page, with the ability to add simple products straight to the Magento shopping cart. But make sure that you don’t have any other plugins that load in Magento. Below are the steps of integrating wordpress into Magento. So read through to know how to integrate WordPress into Magento.
Deactivate the Magento function that conflicts with one in WordPress
- Navigate to ~/your-magento/app/code/core/Mage/Core/functions.php
- Duplicate that file and place the new version in ~/your-magento/app/code/local/Mage/Core/functions.php.This will now be used and will remain during Magento upgrades.
- Open the newly created file and browse to find
- Replace the above line with:
- Upload this file to your server
The plugin can be downloaded directly from the WordPress Plugin Directory, or browse to Plugins » Add New in your WordPress admin area and then search for Magento WordPress Integration.
- Install the plugin as given above.
- Then activate the plugin. There will be a message reminding you to remove the function from Magento.Please ignore the message if you have already done so.
- In your side bar click Mage/WP.
- You will need to enter the details of your Magento store under the Initial Setup tab.
- The first field needs the path to your Magento installation and this needs to be on the same domain as your WordPress installation, and it must be entered from the root
- The second field needs the name of Magento theme or package
- The third field needs to be the store view code of the Magento store that you want to get data and blocks from. Just leave this as default if you haven’t specifically renamed or made any new Magento store views.
- You can move on the other tabs once you have done the above. Each of these tabs contains usage instructions and should be workable.
The Magento wordpress integration allows you to do the following
- Bring out any of the default Magento Blocks in your WordPress theme.
- Bring out any Magento blocks that you have created yourself.
- Bring out any static blocks that you have made in your Magento admin area.
- Choose which top links to show
- . Use the options provide in the plugin settings to style the products that are shown on posts/pages.