Translate the "Out of stock" label

This topic has 11 replies, 5 voices, and was last updated 9 years, 7 months ago ago by Brian Johnson

  • Avatar: corinneo
    corinneo
    Participant
    February 17, 2015 at 11:41

    Hello

    How can I translate the “Out of stock” label on the product image please?
    I have succeeded to change the “New” label via the .po translation file but it does not work with “Out of stock” and maybe not with “Sale”.

    Thx

    10 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 17, 2015 at 11:51

    Hello,

    You can translate “Out of stock” in \woopress\woocommerce\loop\sale-flash.php file.

    Regards,
    Robert Hall.

    Avatar: corinneo
    corinneo
    Participant
    February 17, 2015 at 12:19

    Hello Robert

    Thank you for your help.

    Avatar: corinneo
    corinneo
    Participant
    February 17, 2015 at 12:25

    Another question please: how can I change the size of the font for the “out of stock” label? I guess it is in the CSS file but which one…?

    Thx

    Avatar: Eva
    Eva Kemp
    Support staff
    February 17, 2015 at 14:05

    Hello,

    Please add this code in custom.css file:

    .out-stock .wr-c {
     font-size: 10px;
    }
    .out-stock .wr-c .bigT {
        font-size: 10px;
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: corinneo
    corinneo
    Participant
    February 17, 2015 at 16:19

    Thank you

    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 17, 2015 at 16:22

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

    Avatar: Katya
    Katya
    Participant
    April 14, 2015 at 02:37

    Hi, my \woopress\woocommerce\loop\sale-flash.php doesnt have any “out of stock” label. This is the content of that file below. How do I change “out of stock” to “purchased”? eg. the “out of stock” label over the product at http://littletreasuresregistry.com.au/product-category/clothing/

    ———————————
    <?php
    /**
    * Product loop sale flash
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    global $post, $product;

    ?>
    <?php if ( $product->is_on_sale() ) : ?>

    <?php echo apply_filters( ‘woocommerce_sale_flash’, ‘<span class=”onsale”>’ . __( ‘Sale!’, ‘woocommerce’ ) . ‘</span>’, $post, $product ); ?>

    <?php endif; ?>
    ————————————————
    Thanks so much!

    Avatar: Eva
    Eva Kemp
    Support staff
    April 14, 2015 at 09:34

    Hello @Katya,

    Please check it attentively. The text is written in the file wp-content/themes/woopress/woocommerce/loop/sale-flash.php on line 32.
    If you still can’t find it please provide us with FTP credentials.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Katya
    Katya
    Participant
    April 14, 2015 at 09:49

    Thanks eva, still couldnt see it. i ended up finding it on contact-product.php

    I think it fixed it.

    Thank you 🙂

    Katya

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 14, 2015 at 09:51

    Hello

    You are welcome! We are glad that you have found the solution.

    With best regards
    Brian Johnson

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

The issue related to '‘Translate the "Out of stock" label’' 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.