response.json() ).then( json => {
if ( json.status == 1 ) {
var twohrs = new Date( new Date().getTime() + 120 * 60 * 1000 );
if ( window.Cookiebot ) { /* Cookiebot compatible */
if ( window.Cookiebot.consent.preferences || window.Cookiebot.consent.statistics || window.Cookiebot.consent.marketing ) {
Cookies.set( 'commercekit-nonce-value', json.nonce, { expires: twohrs } );
Cookies.set( 'commercekit-nonce-state', json.state, { expires: twohrs } );
} else {
Cookies.remove( 'commercekit-nonce-value' );
Cookies.remove( 'commercekit-nonce-state' );
}
} else {
Cookies.set( 'commercekit-nonce-value', json.nonce, { expires: twohrs } );
Cookies.set( 'commercekit-nonce-state', json.state, { expires: twohrs } );
}
cgkit_nonce_ustate = json.state;
commercekit_update_nonce( json.nonce );
}
} );
} else {
commercekit_update_nonce( cgkit_nonce_cvalue );
}
} );
function commercekit_update_nonce( nonce ) {
var nonce_input = document.querySelector( '#commercekit_nonce' );
if ( nonce_input ) {
nonce_input.value = nonce;
} else {
document.body.insertAdjacentHTML( 'beforeend', '' );
}
commercekit_ajs.ajax_nonce = 1;
if ( typeof cgkit_update_order_bump_views == 'function' ) {
cgkit_update_order_bump_views();
}
}
/* ]]> */
Pluginz Licensed Marshall Guitar Plug Keychain – 4 Pack
$6 incl GST
Availability: In stock
Hey there! Ask me anything!