Hi, hmm how would you like the price displayed instead? I mean what should be shown instead of “RUB60.00”?
If you would like to show it as 60₽ then please try adding the code below in your theme functions.php file.
add_filter("adverts_currency_list", "format_ruble");
function format_ruble( $list ) {
foreach( $list as $k => $c ) {
if( $c["code"] == "RUB" ) {
$list[$k]["sign"] = "₽";
}
}
return $list;
}
Then go to wp-admin / Classifieids / Options / Core panel and in “Currency Position” select “suffix”.
Thread Starter
ogoege
(@ogoege)
As I once wrote, this function is tied to the ruble, I need to be able to independently specify the currency.
https://ibb.co/df6E27
So in the Listing Types you would like to use different currencies? If so then this is not really possible with the Payments module i am afraid.
Charging users using different currencies should be however possible with the WooCommerce integration if you have WC configured to allow product prices in different currencies (most likely this will require some WC extension).
Thread Starter
ogoege
(@ogoege)
I want to manually write a currency. How make a free field how we did this here?
https://wordpress.org/support/topic/problems-with-currencies/
This is not possible i am afraid, at least not with the default Payments Module (it might be with the WooCommerce Integration) as it will allow only one currency to be selected and the prices need to be as integer number so later the prices can be used to automatically generate a payment history and a PayPal payment.
In other words if the price and currency will be manually typed from keyboard into a single field WPAdverts will not be able to use this price to create a payment object or to properly forward the user to PayPal, sorry.