Content of the page

How to force any currency on the checkout page

Content of the article

Sometimes its necessary force on checkout page any currency by logic of business.

  • open functions.php of the current wp theme and drop there next script:
  • add_filter('wp_head',function(){    
        if(is_checkout()){
            global $WOOCS;
            $WOOCS->set_currency('USD');
        }
    });
  • Change 'USD' to any currency you need ...

Notice: works only when "Is multiple allowed" option is enabled (Yes).