Support » Plugin: Sublanguage » Content not translated on update cart woocommerce

Viewing 1 replies (of 1 total)
  • /*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)
  • You must be logged in to reply to this topic.