Widget of Product Status Filter, Can the name “Out of Stock change”

This topic has 3 replies, 2 voices, and was last updated 2 months, 4 weeks ago ago by Dreamedia Creative

  • Avatar: Dreamedia Creative
    Dreamedia Creative
    Participant
    September 8, 2025 at 01:31

    I use a widget of Product Status Filter, Can the name “In stock” “Out of Stock change?”
    Can I not showing”on sale”?
    Please suggest

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    September 8, 2025 at 08:32

    Dear @Dreamedia Creative,

    1. Please add the following code under functions.php file locates in your child theme:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'In stock' :
    			$translated_text = 'Your Text 1';
    			break;
    		case 'Out of stock' :
    			$translated_text = 'Your Text 2';
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    2. Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    div#etheme_product_status_filter-2 ul li:last-child {
        display: none;
    }
    

    Kind regards,
    The 8Theme Team

    Avatar: Dreamedia Creative
    Dreamedia Creative
    Participant
    September 8, 2025 at 09:00

    Thanks for the support! My topic “Widget of Product Status Filter, Can the name “Out of Stock change”” has been successfully resolved.

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Widget of Product Status Filter, Can the name “Out of Stock change”’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.