• Resolved ancher

    (@ancher)


    Hi
    I am trying to find a way to update my WC session with JavaScript to avoid page reload. I have no problem setting regular sessions in PHP or JavaScript, but since its advised to use “WC()->session->set” instead of $_SESSION it gives me trouble updating it with JS. I basically need this line converted into JS.

    WC()->session->set('sess_test', 'new value');

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Updating a WC session with javascript’ is closed to new replies.