Our widget allows easy integration with any web store.
Customers can start watching the price of a product in your store
without leaving the page.
<div id="pricewatch-widget"></div>
<script type="text/javascript">
(function(d, s, id) {
var js, pwjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://www.pricewatch.dev/assets/js/widget.min.js?lang=en";
pwjs.parentNode.insertBefore(js, pwjs);
}(document, "script", "pricewatch-widget-js"));
</script>
Just embed our widget on your web store and you're done.
The widget can be customized to suit your needs in many ways.
If you want, you can customize almost all the texts that the widget displays.
The text configuration is done via the data-*
attributes. You can choose from these attributes:
Now just embed the texts in the selected attribute, in the div
tag. Example:
<div id="pricewatch-widget" data-text-init="Click to watch the price"></div>
The widget can be adapted entirely to the appearance of your own web store. We have 2 options available:
You change some parts of styles properties that will override the default settings.
You create your own styles without having to load default ones. You must then provide your own styles with id="pricewatch-widget-css"
. Example:
<link type="text/css" rel="stylesheet" id="pricewatch-widget-css" href="path/to/my/own/styles.css">