Jump to: navigation, search

Offers

OffersOverlay.png

Overview

The Offers widget allows a customer to view a product or promotion on a page. It comes with many display modes and options such as text, image and video. Other features include a timeout and video event binding support.

Usage

Although an offer can be configured via the static configuration, offers must be launched via the following method:

Customization

The full configuration for the offers widget can be passed in as a JSON object to the open command. Calling an empty open command will attempt to open the last successful widget configuration.

Static configuration

The static configuration can be defined for the Offers widget, and will be displayed by calling an empty open command.

3rd party video libraries

An optional parameter is available to enable YouTube and Vimeo videos to be displayed using the widget. This feature requires the loading of 3rd party libraries from YouTube and Vimeo. It is disabled by default in order to prevent 3rd party library loading.

Sidebar configuration

The sidebar configuration is available for Offers, details can be found here

Namespace

WebChat plugin has the following namespaces tied-up with each of the following types.

Type Namespace
Configuration Offers
i18n - Localization Offers
CXBus - API Commands & API Events Offers
CSS .cx-offers

Mobile support

Mobile support for the first iteration is limited to portrait only mode, which is pretty much a toaster stretched to fit the screen.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 8 March 2018, at 12:30.