After a bit of a hiatus due to work pressures I am back busy working on integrating Magento and Pimcore. Over the next few months I hope to launch a new product which is a full integration between Pimcore and Magento using the best of both systems.
As a first step towards this I decided that I needed to be able to use a single system for certain areas of the site, such as footer, header etc as well as being able to include Pimcore views directly in Magento. This post is the beginning of that work. While the full integration will be a commercial offering I thought that many people might find the ability to use Pimcore views in Magento useful so have decided to release a small Magento extension to the community. The extension can be downloaded from https://github.com/Magepim/Magepim_Pimcore.
I'm not going to go into the extension code too much as it should be pretty self explanatory, rather the rest of the post will be showing how to implement this in Magento with a few modifications to your Pimcore view scripts.
July the 7th saw the release of Magento CE 1.9.2 and a security patch - SUPEE-6285 which fixed various security issues especially around the admin side of things.
One side effect of this was that various 3rd party extensions would not allow access to their admin pages for admin users that were assigned to a custom permissions group due to the way Magento checks whether the user has the necessary admin rights.
Many 3rd party extensions did not implement the _isAllowed method on their admin controllers which meant that it would use the base class Mage_Adminhtml_Controller_Action _isAllowed method which simply returned true. The update to Magento changed all this and now checks whether the admin session allows access to the requested admin pages.
Back in the Spring of 2012, Magento released their REST API as part of Magento CE 1.7 and Magento Enterprise 1.12.
The REST API allows you as a developer to expose various data entities suh as customer, catalog and order information to third party applications. A good example of this would be Facebook apps.
While starting to work on my Magento and Pimcore integration I needed to be able to pull catalog information from Magento to populate data objects which will be used to display product information directly within Pimcore so the REST API seems like the obvious way to get this information into Pimcore.