<![CDATA[ A snippet to integrate Magento into MODx - My Forums]]> https://forums.modx.com/thread/?thread=35959 <![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-546129
Quote from: hwmaier at Oct 05, 2009, 11:58 PM
The question was raised in another thread if Magento can be integrated into MODx.

I recently investigated this option for a project and wrote a prototype of a snippet called "magentoVirtual" which embeds a Magento front-end into a single MODx page. It is astonishingly simple and requires only a few lines of PHP code.

The concept works in principal and I thought I share it here as it may be useful for other people.

The only thing I could not get to work yet is combining the session management of Magento with MODx. The issue simply is that at the time MODx loads the sessions the Magento classes are not yet loaded and once Magento is instantiated the session objects are incomplete.

As this snippet is only a prototype, I simply disabled the MODx session init by uncommenting startCMSSession in index.php. I am sure a proper solution will be found soon.

Please note, this code is experimental and it's use requires knowledge of Magento and how it is configured.
For basic installation instructions, refer to the snippet.
]]>
kinexmedia Nov 02, 2016, 10:45 AM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-546129
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202006 Quote from: bogdan at Feb 01, 2010, 01:11 PM

Anyway , please free to discuss about the matter as this is a snippet would be a major improvement for both applications.

Please note this thread is not a generic discussion thread about Magento and MOXx. It is about a specific snippet which integrates magento into MODx (and not the other way round) and its code and relating implementation problems.

I recommend to start a new thread for all non-technical discussions and for other approaches about the magento/modx integration and leave this thread for technical contributions to this particular snippet.
]]>
hwmaier Feb 01, 2010, 06:18 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202006
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202005
The main stumbling block for me was how to marry the two session managements together so they both work and don’t interfere or cancel out each other. I had issues with the order how objects are instantiated and registered and when sessions are registered and started.

I believe MODx needs to provide hooks and an API to allow 3rd party sessions to be integrated into the session management (eg loading classes of session variables).
]]>
hwmaier Feb 01, 2010, 06:11 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202005
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202004
Besides hacking the core of both application , it is a good start to establish which application should be the master. I would nominate Magento as master , but there are a lot of issues that should be discussed. Anyway , please free to discuss about the matter as this is a snippet would be a major improvement for both applications.

]]>
bogdan Feb 01, 2010, 07:11 AM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx?page=2#dis-post-202004
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202003
A decent e-commerce plugin is the only thing that seems to be missing from MODx. Similarly, Magento seems like it has everything covered for e-commerce but it’s really lacking in the CMS department.

I would be happy to get involved with this project, say on a user testing/documentation basis. I will leave the PHP to others wink]]>
elusive Feb 01, 2010, 04:19 AM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202003
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202002
Currently, Magento has on its own Enterprise version a document handling system based on Revisions and i think this would be a great improvement for Modx as well ( although the CMS part from Magento is not so friendly ) .

So anyone that is interested , give a sign.
Greets,]]>
bogdan Jan 28, 2010, 04:46 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202002
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202001 Quote from: paul_d at Nov 10, 2009, 03:21 AM


Or.. is it easy to do for a non-coder like me?


What I published is just a proof of concept, nothing to be readily used and it requires some PHP experience to fine tune it. There are still open issue like the sessions. Until that has been resolved the status remains "proof of concept".

As I decided to osCommerce for the current project instead of Magento I will not continue to work on this snippet for a while.
]]>
hwmaier Nov 09, 2009, 09:32 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202001
<![CDATA[could we do the reverse? MODx into Magento]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202000
I would love the ability to add CMS pages using MODx. far more comprehensive and useful then the (non) CMS that Magento has.

Or.. is it easy to do for a non-coder like me?

Thanks, Paul]]>
paul_d Nov 09, 2009, 09:21 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-202000
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-201999 Quote from: jusmeig at Oct 30, 2009, 03:28 PM

Thanks for sharing this.
A little confused, what are we getting here? The Magento backend in MODx?
How do you list products in your MODx templates etc?
Read the first post. It says "...which embeds a Magento front-end into a single MODx page".

If you are after showing Magento objects in MODx, this can be done as well but using the Magento API snippet but it is of very little use as you need the shopping cart to checkout and Magento has not yet an API to access the shopping cart and checkout process.
]]>
hwmaier Oct 30, 2009, 06:40 PM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-201999
<![CDATA[Re: A snippet to integrate Magento into MODx]]> https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-201998 A little confused, what are we getting here? The Magento backend in MODx?
How do you list products in your MODx templates etc?]]>
jusmeig Oct 30, 2009, 10:28 AM https://forums.modx.com/thread/35959/a-snippet-to-integrate-magento-into-modx#dis-post-201998