New answers tagged

0

I guess you want to read the cookie value inside a block. But with full page cache, this page (and block) is cached, therefore only the first pageview will actually try to read the cookie. So you need read up on FPC hole punching to ensure the block is never cached.


0

you can do using default.xml file just call phtml file from layout and add below code in your phtml file <script type="text/javascript"> require([ 'jquery', 'jquery/jquery.cookie' ], function ($) { $(document).ready(function () { var date = new Date(); var minutes = 60; ...


Top 50 recent answers are included