Cookie isn't being set in vendic/module-zopim/view/frontend/templates/footer/zopim.phtml
var cookieName = "<?php echo $block->config->getExpectedCookieName() ?>"
var cookieValue = "<?php echo $block->config->getExpectedCookieValue() ?>"
console.log(cookieName);
console.log(cookieValue);
console.log($.cookie(cookieValue));
it should be:
console.log($.cookie(cookieName,cookieValue));
Reference:
See the docs on github for details.
https://github.com/carhartl/jquery-cookie
You can then do:
$.cookie("test", 1);
Cookie isn't being set in vendic/module-zopim/view/frontend/templates/footer/zopim.phtml
it should be:
console.log($.cookie(cookieName,cookieValue));Reference:
See the docs on github for details.
You can then do:
$.cookie("test", 1);