Top Banner
Free Powerpoint Templates Page 1 © hedwire.com, Inc Free Powerpoint Templates Magnolia KonaKart Integration headwire.com, Inc Ruben Reusser, CTO [email protected]
29

Integrating Kona Kart with Magnolia

Jun 26, 2015

Download

Self Improvement

Boris Kraft

Learn how to integrate KonaKart (an open source shopping cart solution) into Magnolia and use Magnolia to control the flow of the KonaKart application with the open source konakart-module for Magnolia.

The module fully integrates the struts based KonaKart application into Magnolia and allows the views of the struts application to be managed within Magnolia. It is a seamless integration between the two products. All KonaKart UI elements are provided as paragraphs within Magnolia and can be used by the content authors to configure the user experience.

This hands on talk will show how one can integrate Kona Kart (an open source shopping cart solution) with Magnolia to provide shopping cart functionality to any Magnolia site with the feature richness provided by Kona Kart.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 1© hedwire.com, IncFree Powerpoint Templates

Magnolia KonaKart Integrationheadwire.com, IncRuben Reusser, [email protected]

Page 2: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 2© hedwire.com, Inc

Topics What is it

Magnolia KonaKart Magnolia & KonaKart

Approaches KonaKart SOAP API Direct Integration

Implementation Merging the Applications Modification to Struts Setting up the Pages

Installation Styles

Demo Where to get it Questions

Page 3: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 3© hedwire.com, Inc

Who am I?

Ruben Reusser, CTO headwire.com, Inc

headwire is a firm targeting cms based websites and cms based applications.

We offer solutions that combine a WCM and customer secific applications into one platform.

We treat the view of an application as content and allow our customers to manage them through a content management system.

We target Java and JCR based systems.

Page 4: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 4© hedwire.com, Inc

What is it?

The Magnolia KonaKart Module targets websites with a shopping cart solution and the need for a WCM.

Page 5: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 5© hedwire.com, Inc

Magnolia

Magnolia is a mature WCM based on JCR and Java. It's flexibility is a great core that can be extended and allows us to add application specific functionality with ease.

Page 6: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 6© hedwire.com, Inc

KonaKart

KonaKart is a mature and full fledged struts based shopping cart solution written in Java with a hibernate based database backend.

KonaKart supports pricing, shipping and payment gateways out of the box as well as a great set of other features such as reviews, product bundling, wishlists, etc.

It is able to handle a large set of customer requirements out of the box.

Page 7: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 7© hedwire.com, Inc

Magnolia & KonaKart

The vision of this module was to bring features from both applications together.

KonaKart can provide the shopping cart solution missing in Magnolia

Magnolia can provide the ease of managing the web part and styling a KonaKart shopping solution.

Page 8: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 8© hedwire.com, Inc

Demo

Quick Demonstration of KonaKart featuresQuick Demonstration of Magnolia features

Page 9: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 9© hedwire.com, Inc

Demo

Page 10: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 10© hedwire.com, Inc

Demo

Page 11: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 11© hedwire.com, Inc

Demo

Page 12: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 12© hedwire.com, Inc

Approaches

Multiple approaches are available to integrate KonaKart and Magnolia – both applications provide features that can be used.

- JSR168 portal support by Magnolia and KonaKart- KonaKart SOAP API

Page 13: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 13© hedwire.com, Inc

JSR168 Portlet Support

KonaKart and Magnolia both support the JSR168 Portlet standard.

Pro:- easy to integrate with a portal server

Con: - needs an additional application - style for KonaKart and Magnolia need to be merged- no fine grained control over the KonaKart solution

Page 14: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 14© hedwire.com, Inc

JSR168 Portlet Support

Page 15: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 15© hedwire.com, Inc

SOAP API Integration

KonaKart provides a SOAP API to access all functionalities provided by KonaKart.

Pros: - Able to impletement pages and paragraphs in Magnolia to fully support all functions from KonaKart

Cons:- The view of the KonaKart application as well as error handling has to be rewritten

Page 16: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 16© hedwire.com, Inc

Merge

KonaKart and Magnolia are both J2EE applications. There are no conflicts between the applications (version of dependent libraries, etc).

Pros: - Both applications can be merged with little effort- Ability to fully reuse all the view components from KonaKart within Magnolia

Cons:- future releases may cause conflicts in dependent libraries

Page 17: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 17© hedwire.com, Inc

Implementation

A SOAP Version of the integration was first developed for a customer. The integration works, however not that feature rich.

To promote good reuse of the exising KonaKart code within Magnolia the approach to merge the two projects was chosen.

POC showed no conflicts and fast progress in developing necessary adjustments within Magnolia.

Page 18: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 18© hedwire.com, Inc

Merging the Applications

The main problems in merging the applications are the web.xml files – both apps need to be able to run.

> Magnolia Filter Chain vs Struts

Page 19: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 19© hedwire.com, Inc

Modification to Struts

View Actions are moved to Magnolia

Instead of

<action path="/CatalogLogInPage" forward="catalog.login.page"/>

Configuration is in Magnolia

Page 20: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 20© hedwire.com, Inc

Modification to Struts

Page 21: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 21© hedwire.com, Inc

Setting up Pages

All pages can then be set up within Magnolia and moved to an appropriate location.

All struts tiles are available as paragraphs

Page 22: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 22© hedwire.com, Inc

Setting up Pages

Page 23: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 23© hedwire.com, Inc

Setting up Pages

Page 24: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 24© hedwire.com, Inc

Installation

- download and install KonaKart

- download the Magnolia bundled WAR file

- run the Magnolia KonaKart ant script

> results in a combined WAR file

- use the war file with tomcat or import into eclipse

- place the KonaKart filter right below logout filter

Page 25: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 25© hedwire.com, Inc

Installation

Page 26: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 26© hedwire.com, Inc

Styles

- The Magnolia KonaKart module can be combined with the headwire templating module

- choose a style and run the shopping cart solution

DEMO

Page 27: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 27© hedwire.com, Inc

Styles

Page 28: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 28© hedwire.com, Inc

Where can I get this?

KonaKart: http://www.konakart.comMagnolia: http://www.magnolia-cms.comMagnolia KonaKart Module: http://www.headwire.com

Support: Best through Magnolia User Mailing list or KonaKart forums

Page 29: Integrating Kona Kart with Magnolia

Free Powerpoint Templates Page 29© hedwire.com, Inc

Questions?