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

    (@carmelobaglieri)

    /*retrive with cookie*/
    add_action(‘wp_head’,function(){
    global $sublanguage;
    ?>
    <script>
    /*lang cookie*/
    var d = new Date();
    var expire = new Date(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours()+2, d.getMinutes());
    document.cookie = “lang=<?php echo $sublanguage->current_language->post_name; ?>; expires=”+expire+”; path=/”;
    </script>
    <?php
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Content not translated on update cart woocommerce’ is closed to new replies.