...
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | Exemple of container |
---|
|
< ... the rest of the website>
<div id="product_1"> </div>
<div id="product_2"> </div>
</ ... the rest of the website>
<div id="catalog_1"> </div> |
Get information
The information needed to display a widget are of two kinds : global and local.
...
Code Block |
---|
theme | Eclipse |
---|
title | Exemple de code |
---|
|
<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: [{
widget: 'Product', // the name of the widget
root: '#product_1', // the id of html tag above
productId: '4654654', // the id of the product
occurrenceId: '87846578', // the id of performance / match / slot
showActions: true, // parameters to show the actions
aspectRatio: 'VERTICAL' // how to display the picture
},{
widget: 'Product',
root: '#product_2',
productId: '465488',
occurrenceId: '1129848',
showDescription: true,
showImage: false
},{
widget: 'Catalog',
root: '#catalog_1'
}]
});
</script> |