Hi,
The “Price by country” is not active in the WordPress admin…. What’s the currency? The amount of the order is correct? Could you share some screenshots?
Thread Starter
biksak
(@biksak)
My local currency is COP, and is the currency used for orders made from Colombia. The other countries has USD currency.
The amount of the order, in the admin panel, is correct. But the currency don’t.
I’m sharing some screenshots. In red color are the orders with COP currency. In green color are the orders with USD currency.
https://drive.google.com/drive/folders/1eWHHcFfngMCXpU4JLKxLXDr2R6b4EYro?usp=sharing
Hi,
How did you change the currency symbol of the COP currency from “$” to “COP”?
It seems that’s the problem.
Thread Starter
biksak
(@biksak)
I was using the following code on functions.php:
function addPriceSuffix($format, $currency_pos) {
switch ( $currency_pos ) {
case ‘left’ :
$currency = get_woocommerce_currency();
$format = ‘%1$s%2$s ‘ . $currency;
break;
}
return $format;
}
add_action(‘woocommerce_price_format’, ‘addPriceSuffix’, 1, 2);
I removed it, and it works because there is no currency any more. How can I add currency to the pricing?