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

In Stock - Custom Label

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.

Hello, I have the Pro version of the Husky filter plugin. Is there a possibility to have the custom label for the field"In Stock" in the filter? I have a website in French only and am struggling to change it. What is the easiest solution? via JS script snippet?

Thansk, Vlad

Hello Vlad

Place please actual purchase code of the plugin into the secret area of this ticket:
https://share.pluginus.net/image/i20230222134241.png
https://share.pluginus.net/image/i20230222134615.png
https://share.pluginus.net/image/i20230222134511.png

Share please link to the site where you want to customize view, and by screens described  what you want to get

Welcome!

Hello Alex,

Thanks for replying quickly. I have provided the purchase code info in the secret area.

What I am trying to achieve on this page (https://pixicollector.com/la-collection/) is to have a filter option for customers to select and show products only in stock. Toda my woocommerce shows all products in and out of stock (this is on purpose).

When I activate the"In Stock" option in the Structure settings of Husky Plugin, the filter checkbox appears, but it is in English (I need it in French) and it seems the only way to change the"In Stock" text on the frontend would be to either use a translate plugin or have a codesnippet (chatgpt proposals). I was wondering if there are other simplier ways to achieve the same. What would be great is to have custom label option to rename the"In Stock" configuration under plugin's Structure settings, in a similar way you have it for product category for example.

Many thansk,

Vlad

Hello Vlad,

Good news! HUSKY already has a built-in filter hook for this. You have two solutions:

Solution 1: Quick Code Snippet (Easiest)

Add this to your functions.php or Code Snippets plugin:

add_filter('woof_ext_custom_title_by_instock', function($text) {
return 'En stock';
});

Done! The label will change to"En stock" immediately.

Solution 2: Translation Plugin

Use Loco Translate plugin:
1. Install Loco Translate
2. Go to Loco Translate → Plugins → HUSKY
3. Find string"In stock" (text domain: woocommerce-products-filter)
4. Translate to"En stock"

Let me know if you need any help!

Thanks. Is there a possibility to turn on / show"Title label" for this and customize its text?

For instance the end result would look like:

"Available for shipment now?"

Check box:"Yes"