Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter nomanzahid102

    (@nomanzahid102)

    Thanks for your replay Klayvo

    I find the solution and it’s working well now. Change the js function from the following path
    klaviyo\includes\js\wck-started-checkout.js
    function setKlaviyoCookie(cookie_data) {
    //comment this line
    // cvalue = btoa(JSON.stringify(cookie_data));
    cvalue = btoa(unescape(encodeURIComponent(JSON.stringify(JSON.stringify(cookie_data)))));
    var date = new Date();
    date.setTime(date.getTime() + (63072e6)); // adding 2 years in milliseconds to current time
    var expires = “expires=” + date.toUTCString();
    document.cookie = klaviyo_cookie_id + “=” + cvalue + “;” + expires + “; path=/”;
    }

    • This reply was modified 2 years, 4 months ago by nomanzahid102.
Viewing 1 replies (of 1 total)