Example and reference
Latest version | Documentation |
---|---|
2 | TODO: put link to demo deployment |
...
The widget library only contains a loader that will automatically load the widget definition when needed. You have to include the following script inclusion to get the
<scripttype="text/javascript"src="https://s3.eu-central-1.amazonaws.com/pub.tnwi.int1-s3.secutix.com/stx-widgets/Widgets.js"></script> |
This Widget file generate the STX global object that contains the widget library. The library contains only the library loading system. The needed script will be loaded automatically following the widgets declaration, taking only the needed widgets.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript"> STX.Widgets.start({ // The hostname defined in the point of sales hostname: 'thecube-special-cube.int2-shop.secutix.com', apiKey: '8bafa660-8bc1-4982-83da-f15fce01f4ec', widgets: [ { root: '#product_1', productId: '4654654', occurrenceId: '87846578', showActions: true, aspectRatio: 'VERTICAL' } , { },{ root: '#product_2', productId: '465488', occurrenceId: '1129848', showDescription: true, showImage: false } }] }); </script> |