Фильтр по цене и WooCommerce Currency Switcher v.1.3.1
-
Магазин на двух валютах. WooCommerce Currency Switcher v.1.3.1
Базовая USD.
При изменении валюты на не базовую, фильтр остается в базовой валюте.
Как изменить
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
В теме TwentyNineteen все работает верно. См картинки.
Attachments:
You must be
logged in to view attached files.
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
yes
обратите внимание, что при переключении валюты, меняется обозначение валюты, но цена остается в базовой валюте.
те если фильтр имел диапазон 100-200 дол, то при переключении диапазон становится 100-200 грн. но фильтрует все равно как доллары.
Please, send us your FTP access so we can check what is wrong.
We can’t connect your server with this data https://prnt.sc/st16mv
try again
it seems problem with NAT
Hello,
Try to add the following PHP code snippet to the child theme functions.php file to do this
add_filter(
'woocommerce_price_filter_widget_min_amount',
function( $min_price ) {
if ( class_exists( 'WOOCS' ) ) {
global $WOOCS;
if ( $WOOCS->is_multiple_allowed ) {
$min_price = (int) $WOOCS->woocs_exchange_value( floor( $min_price ) );
}
}
return $min_price;
}
);
add_filter(
'woocommerce_price_filter_widget_max_amount',
function( $max_price ) {
if ( class_exists( 'WOOCS' ) ) {
global $WOOCS;
if ( $WOOCS->is_multiple_allowed ) {
$max_price = (int) $WOOCS->woocs_exchange_value( floor( $max_price ) );
}
}
return $max_price;
}
);
Kind Regards
XTemos Studio
We see that you didn’t activate the child theme. Please, go to Appearance -> Themes and activate it.
Yes. It works. Thank you.
The topic ‘Фильтр по цене и WooCommerce Currency Switcher v.1.3.1’ is closed to new replies.