Features

Change “New” product label to show on latest Uploaded product

7mo agoCompleted

Please make the "New" Label appear only on recently uploaded products, and not on recently edited product?

I have noticed that the “New” product label appears to products that have been recently edited: like if I decide to change price, or start a sale, that product appears to have the “new” label even if it was uploaded a year ago. Also if the product was sold (quantity change), it gets the “new” label.

and 1 other

4 comments

  1. Anonymous7mo ago

    Hello,
    Please, add next code snippet to your child-theme/functions.php
    add_filter('product_new_label_on_date_created', '__return_true');
    Backend : https://prnt.sc/l-qsyZvh9X8y
    Regards

    1. Andymy7mo ago

      Hello,
      I did as advised: https://prnt.sc/ENGiiicT0DbU
      cleared the cache, but there is no change.

      p.s. not much of an expert here - I use a lot of frontend
      Regards Andrei

    2. Anonymous7mo ago

      Hello @Andymy,
      Sorry, that it didn't work for you and I've found a reason. This filter will be added in next update only but I've contacted with our support managers and ask them to find your site access and already uploaded that filter for you in next files xstore/woocommerce/content-product.php and xstore/woocommerce/content-product-slider.php -> https://prnt.sc/iWUDOWOfAD2v
      Note: It won't be lost after update because it will be included globally in theme files, so don't worry.
      Regards, Jack Richardson

    3. Andymy7mo ago

      Hello Jack,
      Amazing work! Job well done! Thank you very much!