Événements tangibles
onSKUSValidated (onSKUSValidated:Function)
Peut être utilisé pour définir un rappel exécuté chaque fois que la demande d'API Tangiblee est terminée
|
Parameter
|
Type
|
Description
|
|
onSKUsValidated
|
function
|
a callback to be executed on each Tangiblee API request completing.
|
tangiblee('onSKUsValidated', function(atLeastOneSKUIsValid) { console.log('At least one SKU is valid: ' + atLeastOneSKUIsValid); });
OnctaShown (OnctaShown:Fonction)
Peut être utilisé pour définir un rappel lorsque Tangiblee CTA est affiché.
|
Parameter
|
Type
|
Description
|
|
onCTAShown
|
function
|
a callback to be executed when Tangiblee CTA is shown.
|
tangiblee('onCTAShown', function() { console.log('Tangiblee CTA shown!'); });
OnctaClicked (OnctaClicked : fonction)
Peut être utilisé pour définir un rappel pour chaque clic de Tangiblee CTA.
|
Parameter
|
Type
|
Description
|
|
onCtaClicked
|
function
|
a callback to be executed on each Tangiblee CTA click.
|
tangiblee('onCtaClicked', function() { console.log('Tangiblee CTA clicked!'); });
onModalOpened (onModalOpened : fonction)
Peut être utilisé pour définir un rappel pour chaque ouverture modale Tangiblee.
[.mauvais]REMARQUE: Si vous souhaitez suivre l'ouverture de la fenêtre contextuelle Tangiblee UX, nous vous recommandons de vous fier à cet événement et non à OnctaClicked (), car ce dernier risque de ne pas être précis à 100 % en cas de conflits CSS ou js sur le PDP. [.bad]
|
Parameter
|
Type
|
Description
|
|
onModalOpened
|
function
|
a callback to be executed on each Tangiblee modal opening.
|
tangiblee('onModalOpened', function() { console.log('Tangiblee modal opened!'); });
sur un cadre chargé (sur un cadre chargé : fonction)
Peut être utilisé pour définir un rappel pour chaque chargement d'iframe tangible.
|
Parameter
|
Type
|
Description
|
|
onIframeLoaded
|
function
|
a callback to be executed on each Tangiblee iframe loading.
|
tangiblee('onIframeLoaded', function() { console.log('Tangiblee iframe loaded!'); });
onModalClosed (onModalClosed:fonction)
Peut être utilisé pour définir un rappel pour chaque fermeture modale Tangiblee.
|
Parameter
|
Type
|
Description
|
|
onModalClosed
|
function
|
a callback to be executed on each Tangiblee modal closing.
|
tangiblee('onModalClosed', function(timeInWidget) { console.log('Tangiblee modal closed! Time in widget', timeInWidget); });
onKeepAlive (onKeepAlive : fonction)
Peut être utilisé pour définir un rappel pour le widget ping (toutes les 5 secondes) Tangiblee s'il est toujours actif.
|
Parameter
|
Type
|
Description
|
|
onKeepAlive
|
function
|
a callback to be executed on each Tangiblee widget ping (every 5sec).
|
tangiblee('onKeepAlive', function() { console.log('Widget ping'); });
onUserInteracted (onUserInteracted:Function)
Peut être utilisé pour définir un rappel pour la première interaction utilisateur de Tangiblee.
|
Parameter
|
Type
|
Description
|
|
onUserInteracted
|
function
|
a callback to be executed on the first Tangiblee user interaction.
|
tangiblee('onUserInteracted', function() { console.log('User interacted'); });
Sur un widget CClickInWidget (sur un Widget CclickInWidget : Function)
Peut être utilisé pour définir un rappel à chaque fois que vous cliquez sur le CTA Ajouter au panier dans la fenêtre contextuelle Tangiblee.
|
Parameter
|
Type
|
Description
|
|
onATCClickInWidget
|
function
|
a callback to be executed on each Tangiblee Add to Cart click.
|
tangiblee('onATCClickInWidget', function() { console.log('product added to cart'); });