EECI - EE And Magento Integration

25
THE STORY OF SIMPLIFIEDSAFETY.C OM Integrating Expression Engine & Magento

description

 

Transcript of EECI - EE And Magento Integration

Page 1: EECI - EE And Magento Integration

THE STORY OF SIMPLIFIEDSAFETY.COMIntegrating Expression Engine & Magento

Page 2: EECI - EE And Magento Integration

For Starters

Code Igniter? PatternTap.com – Design pattern collection

site developed with Matthew Smith of Squared Eye

Page 3: EECI - EE And Magento Integration

For Starters

Interaction – Got a Question? Ask It! Happy to get into the really technical bits –

meet up after. Not the Final Word on Integration

My approach, not necessarily the “Best” approach.

Page 4: EECI - EE And Magento Integration

Back Story

Ecommerce since 1998 (with ASP) 2005 started simplifiedbuilding.com on

OSCommerce and a $65 Template

Page 5: EECI - EE And Magento Integration

Back Story

100% Sweat equity investment 3 yrs later

2 partners and 2 employees Grossing over 1 Million in Sales

Page 6: EECI - EE And Magento Integration

Back Story

From 2005 built SBC and worked as independent developer building sites for myself and others.

January 1, 2009 – Acquired by global company to replicate lessons in International network of sites

Page 7: EECI - EE And Magento Integration

Building a Global Network of Sites Which Tools? What architecture? What was Important

Content Heavy Site – robust CMS. Speed – Launch timeline was Summer/Fall.

Didn’t want to spend time redeveloping Flexibility – wanted to have the ability to customize

everything. Minimize Maintenance – small operation, large

network Scalability – spin of additional sites with nominal

efforts Cost! - Wanted to leverage affordable technologies

Page 8: EECI - EE And Magento Integration

Our Approach

EE & Magneto Integration is principally for the user.

Not trying to do what EECommerce is doing Wasn’t concerned with integrating the

template engines Using multi-store and multi-site

capabilities for each system allows us to minimize our code base and easily expand.

Page 9: EECI - EE And Magento Integration

TECHNICAL NITTY GRITTY

Underneath the Hood

Page 10: EECI - EE And Magento Integration

General Architecture

Expression EngineTriggers through path.phpLG .htaccess Uses Inclusion Method

MagentoStored in subdirectory “store”Triggers through index.php

Page 11: EECI - EE And Magento Integration

Consistent Look & Feel

Goals Seemless User Experience Minimize Changes to Magento CSS Minimize Redundancies

Redundancies reduced to: Header Footer 404 Page

Page 12: EECI - EE And Magento Integration

Consistent Look & Feel

Expression EngineTemplates for CMSReferences Magento Skin directory

MagentoStores CSS / JS / Image FilesOverride the existing Magento templates/css ** agility/speed vs. bandwidth/load

Page 13: EECI - EE And Magento Integration

Exchanging Content

Expression Engine

Magento

Need to be able to display Magento content in Expression Engine and Visa Versa

Page 14: EECI - EE And Magento Integration

Semi-Static: CMS, Cron, Cache

Magento – CMS HTML Snippet

Expression Engine

Server Cron

ProcessCached File

cURL

Example: http://simplifiedsafety.com - product strip on home page

Page 15: EECI - EE And Magento Integration

Dynamic Content: CMS, Ajax

Magento – CMS Custom Block

Expression Engine jQuery

True/False or Content

Login with “[email protected]” and “eeci2009” Go to home page - logout button after you log in

Page 16: EECI - EE And Magento Integration

Can’t get there from here... Redirection

Static BlockWith URL for EEContent

Expression Engine

RedirectionXML Layout

Magento CategoryBased on Static Blockand Redirect Layout

Go to http://simplifiedsafety.com/store/fall-protection/passive.htmlClick on “Rooftop Fall Protection”

Page 17: EECI - EE And Magento Integration

Single Sign On – Starting Simple

Expression Engine

Magento

All user information stored in Magento

No EE LoginVisual Sync through Ajax Content Sharing

Page 18: EECI - EE And Magento Integration

Single Sign On – Getting Complex

Expression Engine

Magento

User information stored and synced in both systems

EE LoginSession Syncing

Page 19: EECI - EE And Magento Integration

Single Sign On – Getting Complex Want to be able to utilize EE modules

such as the forums Want to build other EE modules that

utilize login based information (our secret weapon )

Principals here valid for integrating EE with just about an Third Party system.

Note: this portion is working dev. environment and is scheduled for launch in Nov./Dec. (post Euro-Tour)

Page 20: EECI - EE And Magento Integration

Single Sign On – User CreationExpression Engine Magento

User Created

EE HookMagento API

User Created

Magento Controller HackCustom EE Module called via cURL

Page 21: EECI - EE And Magento Integration

Single Sign On – User Login

Expression Engine Magento

User LoginLogin via Email (solspace)Credentials Passed via Ajax (https) on Login Landing Page

User LoginMagento Controller HackCustom EE Module called via cURL(passing cookies back to browser)

Session Created

Session Created

Page 22: EECI - EE And Magento Integration

Single Sign On – User MaintenanceExpression Engine Magento

Critical AccountChanges

Username PasswordResets

Magento Controller HackCustom EE Module called via cURL

ChangesPropagated

Redirect

Page 23: EECI - EE And Magento Integration

EXTRAS

Page 24: EECI - EE And Magento Integration

Extensions Used

Expression Engine Custom Module User Module from Solspace LG htaccess File Field Frame Playa

Page 25: EECI - EE And Magento Integration

QUESTIONS?