Enhancement for your online store with a fully customizable Settle widget that seamlessly integrates with your store’s theme.
- Easy implementation with a single JavaScript file
- Clickable card reveals an informative popup
- Customizable theme colors for card and popup
- Configurable content through various attributes
To activate the settle widget on your website, follow these steps:
Add this script to your HTML file's <head>
section:
<script src="https://cdn.pixelbin.io/v2/potlee/original/settle-widget.js" defer></script>
Choose one of these methods to add the widget to your page:
Simply add this tag where you want the widget to appear:
<settle-widget totalOrderValue="3000" />
Add a container element with the matching selector to your HTML. This element will serve as the placeholder for the widget.
<div id="settle-widget-container"></div>
Create a new instance of the SettlePopupWidget
in your JavaScript. Make sure this script runs after the DOM has fully loaded.
document.addEventListener("DOMContentLoaded", () => {
setTimeout(() => {
new SettlePopupWidget({
selector: "#settle-widget-container",
totalOrderValue: "3000",
});
}, 1000);
});
Adjust these attributes to configure your Settle Widget. Each option lets you control the widget's appearance and behavior to best fit your website: (applicable to both implementation methods)
Attribute | Description | Default | Options |
---|---|---|---|
totalOrderValue * number |
Purchase total amount | 0 | - |
selector * string |
Container element selector (for Javascript Object only) | #settle-widget-container | - |
buttonText string |
Custom button text | Interest free monthly payments with | - |
logoPosition string |
Settle logo position in button | right | "left", "right" |
theme string |
Widget color theme | rgb(1, 89, 79) | Any valid RGB color |
productName string |
Your Product Name | Your Product Name | - |
showProductName boolean |
Flag for showing product name | true | - |
currency string |
Currency symbol | ₹ | - |
emiTenure number[] |
EMI duration in months | [3] | [3, 6, 9, 12] |
*Required attribues
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Default Widget Example</title>
<script
src="https://cdn.pixelbin.io/v2/potlee/original/settle-widget.js"
defer
></script>
</head>
<body>
<settle-widget totalOrderValue="1200" />
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Custom Widget Example</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
src="https://cdn.pixelbin.io/v2/potlee/original/settle-widget.js"
defer
></script>
</head>
<body>
<div id="settle-widget-container"></div>
<settle-widget
totalOrderValue="1200"
selector="#settle-widget-container"
buttonText="in flexible installments"
logoPosition="left"
theme="rgb(0, 0, 0)"
productName="Black T-Shirt"
/>
</body>
</html>