“NEW” badges persistent on cross-sell products element

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

  • Avatar: Parhelion
    Parhelion
    Participant
    October 17, 2024 at 11:14

    Products with badges (“NEW”) work properly when viewed in category, product itself etc. But when linked as a cross-sell or upsell these products get a “NEW” badge for no reason. Publish dates are in 2022, now its 2024. Screenshot attached.

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 17, 2024 at 11:34

    Hello, @Parhelion,

    Thank you for contacting us and for using XStore.

    About the new label, you can read here – https://www.8theme.com/documentation/xstore/xstore-features/xstore-badges-on-products/

    The New Label takes into account the “last update or modification date” of the product. To change this, custom code can be added in the functions.php file of the child theme:

    add_filter('product_new_label_on_date_created', '__return_true');

    We hope this helps.

    Best Regards,
    8Theme’s Team

    Avatar: Parhelion
    Parhelion
    Participant
    October 17, 2024 at 12:28

    This worked like a charm. Thank you.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    October 17, 2024 at 12:28

    Dear Parhelion,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘“NEW” badges persistent on cross-sell products element’' 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.