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

Translate "on sale"

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,

How can I translate the"on sale" filter?

BR,

Clara

Hello Clara

You can use the standard way to translate strings in wordpress

OR  try this - https://products-filter.com/hook/woof_ext_custom_title_xxx

an example

add_filter( 'woof_ext_custom_title_by_onsales' ,'woof_ext_custom_title_sales');

function woof_ext_custom_title_sales ($title){

return 'ANY TEXT';

}

Thank you, it works well! But when"on sale" is selected, it's not translated here: https://ibb.co/5KB3CtV

Hello

what plugin version number are you using?

Please drop me exact link to the issue

 

I'm using version 3.3.5.3

Here is the link: https://www.o-rider-shop.com/categorie-produit/neoprene/swoof/onsale/

Hello Clara

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Try in file - \wp-content\plugins\woocommerce-products-filter\ext\by_onsales\index.php - add this code - https://share.pluginus.net/image/i20240422174341.png

add_action('wp_head', array($this, 'wp_head'));

and  - https://share.pluginus.net/image/i20240422174427.png

public function wp_head (){
self::$includes['js_lang_custom'][$this->index] = apply_filters('woof_ext_custom_title_by_onsales', esc_html__('On sale', 'woocommerce-products-filter'));
}

and do a test

 

Stop me if I'm wrong, but if I edit this file, the changes will be lost as soon as I'll update the plugin, right?

Hello

No! I have already passed this on to the developers, it will be fixed in the next version

Okay, when do you think the next version will be released? I can wait until then if it's soon.

Hello

Unfortunately, we have not started testing yet and at the moment I cannot say the date. But it will definitely take more than 2 weeks

In any case, you can provide FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png -  and I can make these code changes for you

Okay!

Anyway, the code you provided works, thank you!

There still is a translation missing: the"Clear All" button.
Could you try make it translatable please?

Please try it  - https://products-filter.com/hook/woof_clear_all_text