• Resolved glew

    (@glew)


    Hello, I am trying the plugin, I have 2 coins set, one is USD and the other COP

    I have a doubt and a problem

    The question is if there is a way to always show the page in COP currency, no matter where you connect from, always show COP

    If there are more coins the idea is to load 4 coins in total, but no matter where you connect always show one when you start.

    The problem I have is the following.
    Configure to show the currency COP does well depending on where you are connecting, but upon arrival Checkout shows me everything in USD currency.

    I do not know why but it shows me everything in USD.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello

    Try to add this code in functions.php

    add_action('wp_head', 'my_example_scripts') ;
    function my_example_scripts(){
               if (class_exists('WOOCS'))
              {
                                global $WOOCS;
                                 if (is_checkout() OR is_checkout_pay_page() OR is_cart())
                                     {
                                      
    
                                     $WOOCS->current_currency='USD';
                                     $WOOCS->storage->set_val('woocs_current_currency','USD');   
                                  }else{
                                     $WOOCS->current_currency='COP';
                                     $WOOCS->storage->set_val('woocs_current_currency','COP'); 
    }
              }
    }

    Hi, i have a problem on the cart and checkout very similar
    My main currency is THB but if i try to convert to USD on cart and checkout page, always displayed THB, never change, i added your code changing COP to THB but nothing happens

    Could you help me?

    Hello @alexdex

    Please check option – https://c2n.me/3VeAGXG.png

    Thread Starter glew

    (@glew)

    Thanks

    It work

    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with checkout currency’ is closed to new replies.