KonaKart Shopping Widgets. 3rd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

Similar documents
KonaKartAdmin JavaScript Tiles

KonaKart Tile Portlets for Liferay. 24th January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

KonaKart JavaScript Tiles

KonaKart Portlet Installation for Liferay. 2 nd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

CMSnipcart Documentation

Design Document V2 ThingLink Startup

HTML5 and CSS3 for Web Designers & Developers

Configuring Anonymous Access to Analysis Files in TIBCO Spotfire 7.5

August, HPE Propel Microservices & Jumpstart

INSTALLING AND CONFIGURING THE EUROPABANK MPI-PLUGIN FOR VIRTUEMART

JavaScript Libraries User's Guide

Affiliate Program. Powered by. What you will find in this Advertiser Checklist: The Advertiser Checklist

Installation Guide. Kudos Boards v3.x. January ISW Development Pty Ltd

CIW 1D CIW JavaScript Specialist.

Overview

Implementing a chat button on TECHNICAL PAPER

Dynamic Product Options extension for Magento2. User Guide

Siteforce Pilot: Best Practices

Using echoice Affiliate Tools

ThingLink User Guide. Andy Chen Eric Ouyang Giovanni Tenorio Ashton Yon

Inline Checkout Implementation Guide

Checkout by Amazon Widget Reference Guide - Inline Checkout

Checkout by Amazon Widget Reference Guide - Inline Checkout

Full Stack Web Developer

HTML 5 and CSS 3, Illustrated Complete. Unit M: Integrating Social Media Tools

AceShop Quick Guide. AceShop is the integration of two of the most popular open source projects in the world: OpenCart and Joomla!

OU Mashup V2. Display Page

CUSTOMER PORTAL. Custom HTML splashpage Guide

Reference Cart and One Page Checkout BETA February 3, 2014 Version 2014 Release 1

Static Webpage Development

Checkout by Amazon Widget Reference Guide

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Quick Online Shop Documentation

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

EMPLOYEE STORE ORDERING INSTRUCTIONS

Table of Contents. Introduction to Product Slider How to Install and Deactivate How to Configure How to Use...

PHPBasket 4 Administrator Documentation

Bookmarks to the headings on this page:

Dynamic Product Options extension for Magento2. User Guide

Sparrow Client (Front-end) API

welcome to BOILERCAMP HOW TO WEB DEV

Altima Lookbook Professional Magento ecommerce Extension Version 1.6.9

Page 1 of 32. Rewards Points

Full Stack Web Developer

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Drupal

Enterprise Software Architecture & Design

Sliding PayPal Shopping Cart 2 DMXzone

Your Cart User Manual v3.6

Jquery.ajax Call Returns Status Code Of 200 But Fires Jquery Error

More information >>> HERE <<<

SEEM4570 System Design and Implementation. Lecture 4 AJAX and Demo

Developing Ajax Web Apps with GWT. Session I

Standard Checkout. HTML Implementation Guide. U.K. Version

ENRICHING PRIMO RECORDS WITH INFORMATION FROM WORDPRESS. Karsten Kryger Hansen Aalborg University Library

The Structure of the Web. Jim and Matthew

Table of Contents. Introduction to Product View Gallery How to Install and Deactivate How to Configure How to Use...

Implementation Guide. The essentials

Genesys Pulse Deployment Guide. Genesys Pulse User Interface Extensions

Checkout Success Page v2.x Configuration for Magento 2

Developing Applications with Alfresco s Unified REST APIs. Will Abson, Alfresco

Oracle Utilities Customer Self Service

HTML5 Creatives. MediaMath now supports HTML5 Creatives. Each T1AS HTML5 Creative must be uploaded with the following 2 components:

SAHARA BIKE1 RESPONSIVE MAGENTO THEME

Standard Checkout. XML Implementation Guide. U.K. Version

Configuring Hotspots

Discovery Service Infrastructure for Test- bädden

Documentation Module: Magento products integration for WordPress Version: 1.0.0

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Navigation Menu Pro Extension

VidyoEngage for Genesys Widgets

All-In-One-Designer Promotion Handbook. Promotion

Newsletter Popup v3.x Configuration for Magento 2

General Settings General Settings Settings

WIKISYS TECHNOLOGY INTERNSHIP PROGRAM

Table of Contents. Introduction to Store Locator v How to Install and Deactivate How to Configure How to Use...

All India Council For Research & Training

Documentation of Reward Points for Woocommerce. Installation of Reward Points for Woocommerce

InPost UK Limited OpenCart Integration Guide Version 1.0

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Web API Lab. The next two deliverables you shall write yourself.

ReportPlus Embedded Web SDK Guide

RQs + PEs: More Servlets

ApacheCon NA How to Avoid Common Mistakes in OFBiz Development Presented by Adrian Crum

Markup Language. Made up of elements Elements create a document tree

Wirecard CEE Integration Documentation

Website Development (WEB) Lab Exercises

Technical Specifications Leaderboard + Mobile Leaderboard. 27/12/2018 Tech Specs 1

Jquery Ajax Json Php Mysql Data Entry Example

Testing NodeJS, REST APIs and MongoDB with UFT January 19, 2016

Frooition Implementation guide

last time: command injection

Webshop Plus! v Pablo Software Solutions DB Technosystems

This tutorial is intended to make you comfortable in getting started with the Firebase backend platform and its various functions.

CM Coupon Listing Documentation

Lab 1: Getting Started with IBM Worklight Lab Exercise

IBM Worklight V5.0.6 Getting Started

Guide to SpringTab integration

20486: Developing ASP.NET MVC 4 Web Applications

Paul Withers Intec Systems Ltd By Kind Permission of Matt White and Tim Clark

Developer's Guide. High-Level Architecture

Transcription:

KonaKart Shopping Widgets 3rd January 2018 DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

Introduction KonaKart ( www.konakart.com ) is a Java based ecommerce platform where all functionality is available through APIs. This makes it particularly suitable for integration into front and back end systems. In this document we'll concentrate on integrating shopping widgets into social networks and blogs in order to increase the visibility of your products to a wider audience. An affiliate code may be added to the widget in order to reward affiliate partners. When a customer checks out from the widget, the affiliate code is saved on the order. Note that shopping widgets are only available in the Enterprise Version of KonaKart. Prerequisite It is suggested that you read the document called KKJQueryJSON.pdf before reading this document since it contains information explaining how the widget actually communicates with the KonaKart engine. The product widget The product widget is a widget that can be easily embedded into social networks such as Facebook and blogs by inserting a few lines of JavaScript. The widget uses live data by communicating with the KonaKart server from the customer's browser using the KonaKart JSON API. As can be seen from the image above, a page may contain multiple widgets. Each widget contains a number of tab folders: Image: Displays a number of product images selectable by clicking on the image thumbnail. The price is shown and you can add the product to the cart. Details: Contains a description of the product and allows you to configure the product by choosing for example the color and size before adding it to the cart. The price is shown and you can add the product to the cart. Cart: This tab displays the products currently in the cart and allows you to manage the cart by modifying the quantity and removing products. The contents of the tab are identical for all widgets within a page. The tab also displays shipping charges and any promotion discounts and fidelity points earned etc. so that the customer has all the information he needs before deciding to checkout. When the checkout button is clicked, the customer is redirected to the KonaKart store to finalize the checkout process.

Reviews: written. If the product has any reviews, this tab will be visible and will show the last 10 reviews that were How to insert a widget The process is very simple and involves the addition of a few lines of JavaScript: <div kkprodid='1' kkaffiliateid='86754' class="kk-prod"/> <script type="text/javascript"> var url = "http://www.konakart.com/konakart/widgets/prodwidget.min.js"; document.write(unescape("%3cscript src='" + url + "' type='text/javascript'%3e%3c/script%3e")); </script> The div tag is used to insert the widget and includes a number of attributes: kkprodid: This is the numeric id of the product. To include multiple widgets, a number of these divs may be added to the page with different kkprodids. kkaffiliateid: This optional attribute can be used to add a code to identify the affiliate partner. When a customer starts the checkout process from the widget, the affiliate id is saved in the database as an attribute of the order. class: insert the widget. This has to be set to kk-prod. It is used by the JavaScript to determine where to The script tag is used to add the KonaKart JavaScript. The url may be modified to point to the location where the script may be found. How to edit a widget The JavaScript that manages the widget needs to be configured in order to work correctly within your environment. The parameters commonly changed are all at the top of the file as shown on the next page. The jsonprotocol variable can be either set to json or jsonp. JSONP or "JSON with padding" is a complement to the base JSON data format. It provides a method to request data from a server in a different domain, something prohibited by typical web browsers because of the Same Origin Policy where a web page served from server1.example.com cannot normally connect to or communicate with a server other than server1.example.com. When using JSONP, the browser does a GET rather than a POST. Some of the API calls send a large amount of data so you may have to modify the configuration of your web server to increase the maximum length of the HTTP GET request.

/* * Start of configuration parameters */ // Change the root depending on where KK is running // Define the root URL var kkroot = 'http://localhost:8780/konakart/'; // var kkroot = 'http://www.konakart.com/konakart/'; // Define the protocol: json or jsonp var jsonprotocol = 'jsonp'; // Use the image base to display images from the KK store-front app var kkimgbase = kkroot + "images/"; // Use the script base to load the JavaScript var kkscriptbase = kkroot + "widgets/"; // Use the css base to load the css var kkcssbase = kkroot + "widgets/"; // Define the libraries var jquerylib = 'jquery-1.7.2.min.js'; var jqueryuilib = 'jquery-ui-1.8.20.custom.min.js'; var jqueryjsonlib = 'jquery.json-2.3.js'; var jquerykklib = 'jquery.konakart-7.4.0.0.min.js'; // Define styles var jqueryuicss = 'jquery-ui-1.8.20.custom.css'; var kkcss = 'kkwidget.css'; // Messages / Labels var kkmsgcartempty = "Your Cart is Empty"; var kkmsgimage = 'Image'; var kkmsgdetails = 'Details'; var kkmsgcart = 'Cart'; var kkmsgreviews = 'Reviews'; var kkmsgitem = 'Item'; var kkmsgqty = 'Qty'; var kkmsgcost = 'Cost'; var kkmsgremove = 'Remove'; var kkmsgcheckout = 'Checkout'; var kkmsgaddtocart = 'Add To Cart'; var kkmsgtotal = 'Total'; var kkmsginc = 'Increase the quantity'; var kkmsgdec = 'Decrease the quantity'; var kkmsgremove = 'Remove the item from the cart'; /* * End of configuration parameters */ Packaging The JavaScript, CSS, html and image files may be found under../konakart/webapps/konakart/shoppingwidgets. The shopping widget consists of a JavaScript file called prodwidget-x.x.x.x.js where x.x.x.x is the version of KonaKart that it is compatible with. In order to communicate with the KonaKart engine it makes use of the KonaKart jquery plugin called jquery.konakartx.x.x.x.js.

How to Enable JSON for the KonaKart Engine By default the JSON Server servlet sections in the web.xml file for the konakart webapp are commented out so JSON services are disabled after a standard install. Full instructions for enabling JSON can be found in the KonaKart User Guide. Example Demo A example html file is supplied in order to demonstrate how to embed a widget using JavaScript. The file called kkprodwidget.html and can be found under the /KonaKart/webapps/konakart/shoppingWidgets/html directory. In order to run it after a standard install (and after having enabled the JSON APIs on the engine), you just have to enter this URL in a browser: http://localhost:8780/konakart/shoppingwidgets/html/kkprodwidget.html. In order to work correctly there must be a running KonaKart system which includes a product with id equivalent to the kkprodid defined in the HTML file.