Magento WordPress Integration Plugin Arrives In The Market

March 30, 2012 | Author: | Posted in Internet Business/Ecommerce

Introduction:

WordPress enthusiasts have always found it hard to work with Magenta, another popular Open Source platform. However, with the introduction of the Magento WordPress Integration plugin for WordPress, it will now be a lot easier to initiate an instance of your local Magento installation within your WordPress theme.
More features to make you happy

The Magento Integration in WordPress allows a developer to display Magento products within a WordPress post or page, along with the extra ability to add simple products straight to the Magento shopping cart. Some of the main features of the Plugin are:

* Calling default Magento Blocks from a WordPress theme
* Making use of customized Magento blocks
* Using static blocks made in the Magento admin area
* Making choice between top-links (to show/hide) in a block
* Choosing the particular JavaScript and CSS files to be loaded
* Adding additional JS and CSS files from Magento installation folder
* Showing Magento products on a WordPress post or page via comma-separated SKUs – into the post/page editors’ field
* Using the options provided in the plug-in settings to style the products available on posts/pages

Installation Instructions:

This first step is very important, and cannot be missed out for any Magento developer:

1. Deactivate a Magento function that conflicts with one in WordPress
2. Navigate to ~/your-magento/app/code/core/Mage/Core/functions.php
a. 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.
b. 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());
}

c. Replace the above line with:

if(!function_exists(\’__\’)) {
function __()
{
return Mage::app()->getTranslator()->translate(func_get_args());
}
}

d. Upload the file to your server, and it’s done!

You can either download the plugin manually from the WordPress Plugin Directory, or browse to Plugins » Add New in your WordPress admin area, then search for “Magento WordPress Integration”.

Install the plugin as described above.

1. Activate the plugin.
2. Click Mage/WP in your side bar.
3. Under the Initial Setuptab, enter the details of your Magento store.
i. The first field requires the path to your Magento installation – this needs to be on the same domain as your WordPress installation, and must be entered from the root
ii. The second field requires the name of Magento theme or package
iii. The third field needs to be the store view code of the Magento store that you want to get blocks and data from.
4. Once you have done the above, you can move on the other tabs. Each of these tabs contains usage instructions and should be pretty workable.

Setting the cookie paths in Magento can help to solve any issues regarding customer session data between platforms – Go to your Magento admin area. Navigate to System » Configuration » Web » Session Cookie Management. Set the Cookie Path to / and the Cookie Domain to yourdomain.com.

About the Author:
This article has been written by a technical writer working at SynapseIndia – A Magento web development company of India offering Magento integration, Magento ecommerce, Magento customization and Magento services to the worldwide clients from experts Magento developers.

Comments Off on Magento WordPress Integration Plugin Arrives In The Market

Author:

This author has published 18 articles so far. More info about the author is coming soon.

Comments are closed.