Timeline for Magento 1 - How to check if a product is new
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 12, 2016 at 20:09 | comment | added | Eduardo | I adapted your function to show the product who don't have getNewsToDate definied too. <?php if ((date("Y-m-d") >= substr($_product->getNewsFromDate(), 0, 10) && $_product->getNewsFromDate()!="") && (date("Y-m-d") <= substr($_product->getNewsToDate(), 0, 10) || $_product->getNewsToDate()=="")) : ?> ... <?php endif ?> | |
Oct 8, 2015 at 14:57 | vote | accept | kalenjordan | ||
Oct 8, 2015 at 14:57 | |||||
Mar 10, 2014 at 15:27 | vote | accept | kalenjordan | ||
Oct 8, 2015 at 14:57 | |||||
Mar 7, 2014 at 20:14 | history | answered | Tim Bezhashvyly | CC BY-SA 3.0 |