PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

cart page shows USD but checks out in foreign currency

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi

i use a checkout gateway already on the cart page, not on the checkout page. For that reason, I need the currency on the cart page to be USD, because this is the only currency I accept eventually.
So i disabled the plugin on the cart page (so that it will not convert the price on the cart page), and the price is displayed in USD successfully, as I wanted.

However, when i checkout from the cart page (using the"PayPal express checkout" plugin, that allows quick checkout from the cart page) the currency that is being submitted to the paypal is NOT USD.
While it is displayed in USD, it is submitted to paypal with no USD.
How can i fix this?

Is there a code snippet i can use to make sure the checkout window pops up with a USD value?

Thank you

Hello

Try to use  this  code:

add_filter('wp_head',function(){
if(is_checkout() OR is_cart()){
global $WOOCS;
$WOOCS->set_currency('USD');
}
});