Revision as of 15:19, March 21, 2019 by Mgionet (talk | contribs) (Update with the copy of version: draft)
Jump to: navigation, search

Offers

CXOffersOverlayImageLeftDark.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

Screenshots

"Dark" Theme

"Light" Theme

Comments or questions about this documentation? Contact us for support!