Skip to main content

Magento 1 - How to check if a product is new

Tweeted twitter.com/#!/StackMagento/status/442067809745788928
deleted 46 characters in body
Source Link
kalenjordan
  • 3.5k
  • 4
  • 28
  • 59

This seems like probably a dumb question, but fromFrom a quick search the only reference I found was on the Magento forums which is suggesting that you have to write some custom code to check if a product is new.

I would have thought there would be a simple isNew() method on the Mage_Catalog_Model_Product which takes into account the Featured dropdown as well as the Set Product As New From Date and Set Product As New To Date fields - but that doesn't seem to be the case?

Are teh custom codez needed?

This seems like probably a dumb question, but from a quick search the only reference I found was on the Magento forums which is suggesting that you have to write some custom code to check if a product is new.

I would have thought there would be a simple isNew() method on the Mage_Catalog_Model_Product which takes into account the Featured dropdown as well as the Set Product As New From Date and Set Product As New To Date fields - but that doesn't seem to be the case?

Are teh custom codez needed?

From a quick search the only reference I found was on the Magento forums which is suggesting that you have to write some custom code to check if a product is new.

I would have thought there would be a simple isNew() method on the Mage_Catalog_Model_Product which takes into account the Featured dropdown as well as the Set Product As New From Date and Set Product As New To Date fields - but that doesn't seem to be the case?

Are teh custom codez needed?

Source Link
kalenjordan
  • 3.5k
  • 4
  • 28
  • 59

How to check if a product is new

This seems like probably a dumb question, but from a quick search the only reference I found was on the Magento forums which is suggesting that you have to write some custom code to check if a product is new.

I would have thought there would be a simple isNew() method on the Mage_Catalog_Model_Product which takes into account the Featured dropdown as well as the Set Product As New From Date and Set Product As New To Date fields - but that doesn't seem to be the case?

Are teh custom codez needed?