![]() |
Andymy |
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.
Activity Newest / Oldest
Jack Richardson
Status changed to: Done
Jack Richardson
Hello,
Please, add next code snippet to your child-theme/functions.php
add_filter('product_new_label_on_date_created', '__return_true');
Backend : prnt.sc/l-qsyZvh9X8y
Regards
Andymy
Hello,
I did as advised: 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
Jack Richardson
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 -> 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
Andymy
Hello Jack,
Amazing work! Job well done! Thank you very much!