-
- chinesedream

-
Total Posts: 744
Joined: 2007-08-31
San Francisco, CA
|
I have seen the ‘new.phtml’ file in the Catalog/Product, and have always thought it’s used somewhere already; lately I have done quite a bit of customization on Catalog section, and everytime I also dutifully open up the new.phtml to take a look when a new block of code is added/modified somewhere in the list.html, it just never occur to me it’s a Pear Princess waiting for me to discovery - naughty Magento team, why you never say it when we were crying out loud for this feature so many times!
Just now I was thinking OK now I have the Featured Products placed in the homepage working beautifully (big thanks to Dan_w), how do I extend it to add a New product feature, then for a deity holiness second, my light bulb turned on with a ‘new.phtml’ - my first reaction was rush out to see if there is a ‘new.php’ in the code/core/Mage/Catalog/Block/Proudct. Indeed there she is! She was there, eagerly waiting for me to kiss her, turns her into princess in the last 8 months (is this long?!).
She then gave me this magic spell, tell me to place it in the CMS homepage:
{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml"}}
“wait...”, before I rush out, she said I must tell her Magento subject to remember the ‘Set Product as New from Date’ and ‘Set Product as New to Date’.
|