“OUT OF STOCK” LABEL change to “Sold Out”

This topic has 17 replies, 3 voices, and was last updated 1 years, 4 months ago ago by Tony Rodriguez

  • Avatar: nightcrawler
    nightcrawler
    Participant
    July 10, 2023 at 12:40

    How do i change out-of-stock to sold out in product badges?
    I unregistered and want to reregister on the same domain.

    Please, contact administrator
    for this information.
    16 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 10, 2023 at 14:07

    Hello, Nightcrawler,

    Thank you for contacting us and for using XStore.

    1/ “Out of stock” text comes from WooCommerce plugin. You can contact WC support to get assistance with it, or use translation files to change the text: install Loco translate plugin, go to Loco translate > plugins > woocommerce > edit English translation > Save changes, then you can disable the Loco plugin. For example – http://prntscr.com/qma5vl > http://prntscr.com/qma5zj

    2/ https://www.8theme.com/documentation/xstore/theme-installation/how-to-registerderegister-xstore-theme-livestaging-websites/

    Kind Regards,
    8theme team

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 10, 2023 at 14:11
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 10, 2023 at 14:29

    Hello, Nightcrawler,

    Have you tried to deregister via your account on our site https://prnt.sc/DTLftJSvry6I ?

    Kind Regards,
    8theme team

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 10, 2023 at 14:38

    Yes, I did, and it did not work.
    Also i already have English language as the default. how do i change that to show sold out

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 10, 2023 at 15:17

    Hello, Nightcrawler,

    1/ You can activate XStore now.

    2/ Please follow next steps:
    1/ Install Loco translate plugin,
    2/ go to Loco translate > plugins > woocommerce
    3/ edit English translation > find and change text https://prnt.sc/qma5vl
    4/ Save changes and check the result
    5/ disable Loco plugin.
    Or provide temporary wp-admin access, and we will help you.

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: nightcrawler
    nightcrawler
    Participant
    July 10, 2023 at 15:31

    Apologies I may be doing something wrong I am still seeing the same.
    https://prnt.sc/7g1gQhar71r8

    Please contact administrator
    for this information.
    Avatar: nightcrawler
    nightcrawler
    Participant
    July 10, 2023 at 15:40

    The same i saved the po file cleared the cache not able to get it to change

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 10, 2023 at 16:09

    Hello, Nightcrawler,

    Thank you for your response.

    It can be a cache problem. Please try clear all cache or temporarily disabling cache plugins and CDN, and check the result then.

    Kind Regards,
    8theme team

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 11, 2023 at 03:51

    Done it but it does not change. Cleared Cache disabled those plugins

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 11, 2023 at 03:53

    Is there any way to change it using the child theme?
    Is there a more permanent way to solve this problem? as loco translate gives a notice”Notice: Changes to this file may be overwritten or deleted when you update WordPress”

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 11, 2023 at 09:00

    I tried everything in loco translate to change woocommerce, and Xstore core translate cannot be changed to sold out.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 11, 2023 at 12:39

    Hello, Nightcrawler,

    We apologize for the delay in responding.

    By default, the “OUT OF STOCK” text on the Shop page comes from WooCommerce plugin. If the translation for it doesn’t work, it can be affected by a 3rd party plugin or custom code on your site. Please check it by yourself, because we can’t do this with the access you provided, or contact support of WooCommerce – https://wordpress.org/support/plugin/woocommerce/
    The current situation is independent of the theme.

    If you have any other questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.

    Kind Regards,
    8theme team

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 11, 2023 at 13:21

    Hi Rose,
    If i add this snippet below, it gets changed to sold out, but the badge does not work. And the badge is a theme function as per woocommerce. I have provided you with admin access; There is no more elevated access than that. there are no third-party plugins dealing with woocommerce. please guide my next course of action

    add_filter(‘woocommerce_get_availability_text’, ‘themeprefix_change_soldout’, 10, 2 );

    /**
    * Change Sold Out Text to Something Else
    */
    function themeprefix_change_soldout ( $text, $product) {
    if ( !$product->is_in_stock() ) {
    $text = ‘

    Sold out.

    ‘;
    }
    return $text;
    }

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 11, 2023 at 16:33

    Hello, Nightcrawler,

    With the access you provided, we can’t edit child theme files.
    Please try the next code (functions.php):

    add_filter( 'gettext', 'etheme_out_of_stock_translate_text', 10, 3 );
    function etheme_out_of_stock_translate_text( $translated_text, $untranslated_text, $domain ) {
        if ( 'Out of stock' === $translated_text ) {
            return 'Sold out';
        }
        return $translated_text;
    }

    If this doesn’t help, please provide FTP access (FTP host, FTP username, FTP password, FTP port, FTP encryption). To create FTP access, please contact your hosting provider for assistance.

    Kind Regards,
    8theme team

    Avatar: nightcrawler
    nightcrawler
    Participant
    July 11, 2023 at 19:13

    It worked after adding the snippet and apologies for the temporary access problem

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 12, 2023 at 05:02

    Hello, @nightcrawler,

    We are delighted to have you here. If you are satisfied with our Theme and Customer and Technical Support, we would greatly appreciate it if you could leave a 5-star rating for us on ThemeForest at the following link: http://themeforest.net/downloads. Doing so would help us to continue to provide updates and dedicated support in the future.

    Thank you for your time and we hope you have a wonderful day.

    Sincerely,
    8Theme’s Team

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

The issue related to '‘“OUT OF STOCK” LABEL change to “Sold Out”’' has been successfully resolved, and the topic is now closed for further responses

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