Home Forums WoodMart support forum Фильтр по цене и WooCommerce Currency Switcher v.1.3.1

Фильтр по цене и WooCommerce Currency Switcher v.1.3.1

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #200108

    geronima2005
    Participant

    Магазин на двух валютах. WooCommerce Currency Switcher v.1.3.1
    Базовая USD.
    При изменении валюты на не базовую, фильтр остается в базовой валюте.
    Как изменить

    #200149

    Artem Temos
    Keymaster

    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

    #200219

    geronima2005
    Participant

    В теме TwentyNineteen все работает верно. См картинки.

    Attachments:
    You must be logged in to view attached files.
    #200221

    Artem Temos
    Keymaster

    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

    #200255

    geronima2005
    Participant

    yes
    обратите внимание, что при переключении валюты, меняется обозначение валюты, но цена остается в базовой валюте.
    те если фильтр имел диапазон 100-200 дол, то при переключении диапазон становится 100-200 грн. но фильтрует все равно как доллары.

    #200279

    Artem Temos
    Keymaster

    Please, send us your FTP access so we can check what is wrong.

    #200318

    geronima2005
    Participant

    ok

    #200327

    Artem Temos
    Keymaster

    We can’t connect your server with this data https://prnt.sc/st16mv

    #200331

    geronima2005
    Participant

    try again
    it seems problem with NAT

    #200346

    Eric Watson
    Participant

    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

    #200373

    geronima2005
    Participant

    Does not work ((

    #200492

    Artem Temos
    Keymaster

    We see that you didn’t activate the child theme. Please, go to Appearance -> Themes and activate it.

    #200789

    geronima2005
    Participant

    Yes. It works. Thank you.

    #200885

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Фильтр по цене и WooCommerce Currency Switcher v.1.3.1’ is closed to new replies.