MAking that the product badge NEW displays only on new products, not on modified ones

This topic has 6 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Rose Tyler

  • Avatar: Inesita
    Inesita
    Participant
    July 13, 2023 at 11:29

    Hi,
    I was trying to make that the NEW badge does not appear on products that have been just updated and are not new, but I can’t see where to modify it. As far as I could check, the New Label takes into account the “last update or modification date” of the product. Do you have a workaround to achieve that it appears only on new (not modified) products?

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 13, 2023 at 12:02

    Hello, Inesita,

    Thank you for getting in touch with us.

    The New Label takes into account the “last update or modification date” of the product.
    You can disable this label via Theme Options >> WooCommerce >> Shop Elements >> Product badges.
    If you want to change the functionality of this label, you can send a request to our dev team here – https://www.8theme.com/taskboard/

    Kind Regards,
    8theme team

    Avatar: Inesita
    Inesita
    Participant
    July 13, 2023 at 16:36

    Hi Rose thanks for your prompt reply asalways!
    I was trying to find a workaround and use the “featured” or hot badbe instead.
    Is there a way to modify the text from “HOT” to “NOU” somewhere?
    Thanks,

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 14, 2023 at 07:20

    Hello, Inesita,

    Please try to use code from this topic – https://www.8theme.com/topic/xstore-badges-new-label-range-limit-does-not-work/#post-342723

    Kind Regards,
    8theme team

    Avatar: Inesita
    Inesita
    Participant
    July 14, 2023 at 12:25

    Hi Rose,
    please can you advice as to how to add this code to the child theme (that I don’t have)
    Thanks,
    Inés

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 14, 2023 at 12:50

    Hello, Inesita,

    As we can see, the child theme is already installed on your site, so you just need to add the next code:
    add_filter('product_new_label_on_date_created', '__return_true');
    in functions.php via FTP.

    Read more about child theme here – https://developer.wordpress.org/themes/advanced-topics/child-themes/

    Kind Regards,
    8theme team

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

The issue related to '‘MAking that the product badge NEW displays only on new products, not on modified ones’' 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.