ODB
Total Posts: 139
Joined: 2008-02-06
London
Hi there
I am using this line to supposedly show the 5 newest products in my store but they aren’t showing, just a blank space. It doesn’t work for showing category products on the frontpage either:
{{block type = "catalog/product_new" template = "catalog/product/new.phtml" }}
Any clues to why it’s not working? Is it something to do with the templating?
Posted: May 21 2008
| top
Moshe
Total Posts: 1771
Joined: 2007-08-07
Los Angeles
@ODB: does it work like this?
{{block type = "catalog/product_new" name = "dummy_name" template = "catalog/product/new.phtml" }}
Signature
- I would love to change the world, but they won’t give me the source code -
Posted: May 25 2008
| top
| # 1
stevewar
Total Posts: 20
Joined: 2008-05-24
I am having the same problem. I have created categories and products, but the home page is blank. I tried adding this code to the custom design:
{{block type = "catalog/product_new" name = "dummy_name" template = "catalog/product/new.phtml" }}
as suggested, but still nothing there.
I appended it to the begining of the existing code, so it looks like this
{{block type = "catalog/product_new" name = "dummy_name" template = "catalog/product/new.phtml" }} <!--< reference name = "content" > < block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_new" template = "catalog/product/new.phtml" after = "cms_page" /> < block type = "reports/product_viewed" name = "home.reports.product.viewed" alias = "product_viewed" template = "reports/home_product_viewed.phtml" after = "product_new" /> < block type = "reports/product_compared" name = "home.reports.product.compared" template = "reports/home_product_compared.phtml" after = "product_viewed" /> </ reference >< reference name = "right" > < action method = "unsetChild" >< alias > right . reports . product . viewed </ alias ></ action > < action method = "unsetChild" >< alias > right . reports . product . compared </ alias ></ action > </ reference >-->
the url for the site is magento.topinternetguides.com
Thanks for any advice.
Posted: May 25 2008
| top
| # 2
ODB
Total Posts: 139
Joined: 2008-02-06
London
Moshe - 25 May 2008 10:50 AM
@ODB: does it work like this?
{{block type = "catalog/product_new" name = "dummy_name" template = "catalog/product/new.phtml" }}
Hi Moshe
I pasted the code in exactly as you put above but still nothing. Page renders completely, no products, new or otherwise, show up at all. Recently viewed products in the sidebar is working fine.
Posted: May 26 2008
| top
| # 3
ODB
Total Posts: 139
Joined: 2008-02-06
London
Is this ‘Layout Update XML’ affecting the display of this block in any way? This is on the ‘custom design’ page for the CMS page I am trying to edit:
<!--< reference name = "content" > < block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_new" template = "catalog/product/new.phtml" after = "cms_page" /> < block type = "reports/product_viewed" name = "home.reports.product.viewed" alias = "product_viewed" template = "reports/home_product_viewed.phtml" after = "product_new" /> < block type = "reports/product_compared" name = "home.reports.product.compared" template = "reports/home_product_compared.phtml" after = "product_viewed" /> </ reference >< reference name = "right" > < action method = "unsetChild" >< alias > right . reports . product . viewed </ alias ></ action > < action method = "unsetChild" >< alias > right . reports . product . compared </ alias ></ action > </ reference >-->
As far as I know I’ve never touched this code.
Posted: May 26 2008
| top
| # 4
ODB
Total Posts: 139
Joined: 2008-02-06
London
OK I turned the Template path hints on and it’s correctly showing that there should be something there but nothing is showing?
Posted: May 26 2008
| top
| # 5
stevewar
Total Posts: 20
Joined: 2008-05-24
I got new products to display on the home page, and I got the category list to show up in the top navigation menu, but I haven’t figured out how to display products from a particular category or mixture of categories yet. I’ll post a video tutorial once I get it figured out.
-Steve
Posted: May 26 2008
| top
| # 6
jvalen
Total Posts: 54
Joined: 2007-12-12
Los Angeles
Has anyone figured how to display new products on the homepage? I’m having trouble with this.
Signature
Converting to Magento
BarbieIsOut
Posted: August 30 2008
| top
| # 7
alex.bsc
Total Posts: 159
Joined: 2008-06-06
i wanna know too… anyone got a solution?
Posted: September 19 2008
| top
| # 9
joyously
Total Posts: 350
Joined: 2008-08-21
I copied this from the Magento demo store:
{{block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_homepage" template = "catalog/product/new.phtml" }}
and it works for me.
Posted: September 19 2008
| top
| # 10
magpieradio
Total Posts: 30
Joined: 2008-04-27
I am not having any luck with this either.
I added some text so I can be sure the block is functioning, its just there are no items being displayed.
I am on 1.1.6
Anyone?
Image Attachments
Click thumbnail to see full-size image
Posted: September 28 2008
| top
| # 12
Greatmedia
Total Posts: 109
Joined: 2008-05-15
The Netherlands
have you made the product new from date to date?
Posted: September 28 2008
| top
| # 13
magpieradio
Total Posts: 30
Joined: 2008-04-27
Ahh yes, that did it. Thanks Greatmedia!!
Posted: September 28 2008
| top
| # 14