0

I have a product list like this: https://prnt.sc/rk1svv

my checkbox value is product id, how to click button request more info and add product id in checkbox to cookie.

Any help? Thank in advance.

1 Answer 1

1

You can store the cookie in js file using below method,

<script>
    require([
        'jquery',
        'mage/cookies'
    ], function ($) {
       $.cookie('cookie_name', 'value', { path: '/' });//Set the cookies
    });
</script>
4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.