How to change “Sale” text on single product page ?

This topic has 14 replies, 3 voices, and was last updated 1 months, 1 weeks ago ago by Andrew Mitchell

  • Avatar: kamil109
    kamil109
    Participant
    October 10, 2024 at 13:44

    Hi
    How to change “Sale” text on single product page ?
    I change “sale” text on product badges settings – its working on products archive page.

    Files is visible for topic creator and
    support staff only.
    13 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 10, 2024 at 14:20

    Dear @kamil109,

    By default, such text originates from the WooCommerce plugin files. Therefore, we recommend checking the relevant string in the Loco Translate plugin’s translations for the WooCommerce plugin. Please ensure that you synchronize the translations after each plugin or theme update to ensure everything functions correctly.

    Should you require any further assistance, kindly provide us with the appropriate wp-admin access, and we will be happy to help.

    Best regards,
    8Theme Team

    Avatar: kamil109
    kamil109
    Participant
    October 11, 2024 at 10:00

    Loco translation does not work (woocommerce, theme xstore).
    I tried various entries in function.php (e.g.:

    add_filter( ‘woocommerce_sale_flash’, ‘wooc_custom_replace_sale_text’ );
    function wooc_custom_replace_sale_text( $html ) {
    return str_replace( __( ‘Sale!’, ‘woocommerce’ ), __( ‘Your Text’, ‘woocommerce’ ), $html );
    }

    It seems that this element is related to the template because it also displays the discount percentage.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 11, 2024 at 10:13

    Hello @kamil109

    Please, provide us the correct wp-admin + FTP access in private area. Also, provide us a url to the page where such sale discount is displayed on the product.

    Kind regards, Jack Richardson

    Avatar: kamil109
    kamil109
    Participant
    October 18, 2024 at 09:34

    Every single product page with a promotional price displays the word SALE with a percentage.
    But the product catalog displays the description correctly. In this case, I only added a minus sign at the backend of the page in the settings.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 18, 2024 at 11:18

    Dear @kamil109,

    We have re-saved the Theme Options, and the text is now displaying correctly, as shown in the following screenshot: https://prnt.sc/CRGhJVEM7VcZ. Kindly check it at your convenience.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: kamil109
    kamil109
    Participant
    October 18, 2024 at 11:39

    Ok.
    And which theme function did you save again? I have changed the text that is currently displayed via loco to a different one and I would like to confirm the change.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 18, 2024 at 12:13

    Dear @kamil109

    As we wrote you previously we re-saved the global Theme Options -> https://prnt.sc/7SNFRl-kBjfI. Does it work now as it should, or maybe you have any other questions ? If the main issue you requested in this topic is solved, please, mark this topic as closed.

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: kamil109
    kamil109
    Participant
    October 18, 2024 at 12:24

    That’s weird.
    Because I changed the word “wyprzedaż” in the loco (sync) to “promocja -” everywhere – I approved the changes in the theme settings and the word “wyprzedaż” is still displayed..

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 18, 2024 at 12:48

    Dear @kamil109,

    We hope this message finds you well.

    Should you wish to modify the text, please follow the steps outlined below:

    Navigate to Theme Options -> WooCommerce -> Single Product Builder -> Sale Label Text (you can refer to this screenshot for guidance: https://prnt.sc/Jm4JlxWCWLRt).

    For the time being, we have made the necessary changes on your behalf. Kindly review them at your convenience.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: kamil109
    kamil109
    Participant
    October 18, 2024 at 12:56

    OK.
    And one last thing.
    How to change uppercase letters to lowercase?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 18, 2024 at 16:13

    Hello @kamil109

    Please, try to use next custom CSS snippet to be added in your Theme Options -> Theme Custom CSS -> Global CSS:

    .sale-wrapper .onsale {
        text-transform: lowercase;
    }

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: kamil109
    kamil109
    Participant
    October 18, 2024 at 18:55

    Thank You.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    October 18, 2024 at 18:55

    Dear kamil109,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘How to change “Sale” text on single product page ?’' 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.