Skip to main content

ZoovuSDK.storage

Methods

method
setsave key value pair into ZoovuSDK storage
getget value from ZoovuSDK storage by given key
removeremove key value pair from ZoovuSDK storage

Examples

ASSISTANT_CODE is optional, only use it to distinguish assistants when multiple instances exists on one page.

ZoovuSDK.storage.set('promotionCode', '12345', <ASSISTANT_CODE>);

if (ZoovuSDK.storage.get('promotionCode', <ASSISTANT_CODE>) === '12345') {
// set lower price
}

ZoovuSDK.storage.remove('promotionCode', <ASSISTANT_CODE>);