Skip to content

Cookie isn't being Set #2

Description

@immuhammad

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions