Language / Taal / Sprache: English · Nederlands · Deutsch

Overview

The SOUS e-commerce widget is an embeddable widget that allows you to integrate e-commerce functionality directly into your website. The widget provides a complete shopping experience hosted in your website.

Prerequisites

Installation

Basic Installation

Add the following code to your HTML before the closing </body> tag:

<script src="[https://widget.poweredbysous.com/v2/powered-by-sous.js"></script>](https://widget.poweredbysous.com/v2/powered-by-sous.js"></script>)
<script>
  window.EcomWidget.init({
    merchantId: 'YOUR_MERCHANT_ID'
  })
</script>

<aside> 💡

That's it! The widget will automatically create a floating button on your page.

</aside>

Configuration Options

The window.EcomWidget.init() function accepts the following configuration options:

Option Type Required Default Description
merchantId string Yes - Your unique merchant identifier
position string No 'right' Widget position: 'left' or 'right'
hideOnPageLoad boolean No false Hide trigger button until show() is called
customisations object No {} Custom text and styles. See Text Customisations and Style Customisations sections below

Example Configuration

window.EcomWidget.init({
  merchantId: 'ABC123XYZ789',
  position: 'right',
  hideOnPageLoad: false
})

Text Customisations