Try the Demo

Magento Forum

   
Page 2 of 3
“Featured” products block on home page - Not working --Help please
 
bloggleme
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-05-06
 

I’ll start searching around as well. Thanks a bunch for the help. By the way, any idea what page within the admin, allows you to see the best sellers and top rated?? I have not found them yet.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nafnaf1000
Sr. Member
 
Total Posts:  209
Joined:  2008-02-21
 

report: product: bestsellers

 
Magento Community Magento Community
Magento Community
Magento Community
 
PS
Jr. Member
 
Total Posts:  2
Joined:  2008-03-26
 

I’m experimenting with some product displays on the front page.  Wondering if there’s any way to show the grouped product display (the table with qty inputs of associated products) for each grouped product in a list?  Possible addition to the above code?

 
Magento Community Magento Community
Magento Community
Magento Community
 
magnet0
Jr. Member
 
Total Posts:  29
Joined:  2007-10-23
Heraklion, Crete
 

Have you find anything about Grouped Products??

Thank you
Magnet0

Cliff - 27 May 2008 10:10 PM

I’m experimenting with some product displays on the front page.  Wondering if there’s any way to show the grouped product display (the table with qty inputs of associated products) for each grouped product in a list?  Possible addition to the above code?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Christian_Norway
Sr. Member
 
Total Posts:  135
Joined:  2008-06-19
 

Does this work on the latest version, I’ve now tried to do exactly the same but it ain’t working..

 Signature 

Akupunktur, Soneterapi, Massasje Oslo
Draft version of Magento Webshop (Norwegian) - http://helsekost.amedisin.no

 
Magento Community Magento Community
Magento Community
Magento Community
 
russell2pi
Member
 
Total Posts:  31
Joined:  2008-07-19
 

Regarding requests for putting items in random order, I haven’t tried this but I think it should work. Go in to new.phtml and change this:

<?php $i=0; foreach ($_products->getItems() as $_product): ?>

to this:

<?php i=0
            
$_items _products->getItems(); 
           
shuffle($_items);
           foreach (
$_items as $_product): ?>

I will be trying out the featured items code soon so will have a go at testing out the above code at the same time.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Scott
Guru
 
Avatar
Total Posts:  333
Joined:  2007-08-31
Northwest Ohio
 

Note: this will only get and shuffle the new products. Truily featured products need to have a featured attribute and be selected from within the template based on that attribute.

 Signature 

Need a Magento designer? I specialize in helping developers and shop owners create Magento themes designed with aesthetic bliss, crisp refreshing style, and usability-focused design. Check out Tealo, the first public Magento theme!

Your Magento Partner for Stunning Creative Work!

 
Magento Community Magento Community
Magento Community
Magento Community
 
russell2pi
Member
 
Total Posts:  31
Joined:  2008-07-19
 
Scott - 31 July 2008 12:49 AM

Note: this will only get and shuffle the new products. Truily featured products need to have a featured attribute and be selected from within the template based on that attribute.

True, I was assuming in the above that people were using new.phtml as the template along with the Featured module in nafnaf’s code above, as suggested. If you have copied new.phtml to featured.phtml then obviously the shuffle will need to go there instead.

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlasit
Member
 
Avatar
Total Posts:  40
Joined:  2008-06-03
Los Angeles, CA
 

will this same code work for 1.1.1?  I’ve tried following the instructions by nafnaf1000, but on my homepage.  The block doesn’t display at all.  When I run profiler, I get the output though:  BLOCK: home.catalog.product.featured 0.1511 1 0 0 .  Any ideas why it wouldn’t be working?

 Signature 

My Baby: Clashe Fashion 3.0
My Portfolio Atlas Consultant

 
Magento Community Magento Community
Magento Community
Magento Community
 
sccr410
Sr. Member
 
Total Posts:  76
Joined:  2008-04-02
 

I followed the steps exactly from nafnaf1000 in 1.1.2 - I get nothing displaying at all, no errors though.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pauljosephson
Member
 
Total Posts:  37
Joined:  2007-08-31
 

Random, try this.

$products->getSelect()->order(’rand()’);

 
Magento Community Magento Community
Magento Community
Magento Community
 
budape
Jr. Member
 
Total Posts:  4
Joined:  2008-08-18
 

using magento 1.1.3 and followed all the steps given by nafnaf1000, but the featured box isn’t showing up.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pixelpusher
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-04-23
SoCal
 

anyone have the “random” featured products working yet?

I have featured working in 1.1.3 but I get errors when trying the above “random” fixes

Edit:

Sorry I didn’t realize I was supposed to add the random code to featured.php

Works now!

 
Magento Community Magento Community
Magento Community
Magento Community
 
brendanb
Mentor
 
Total Posts:  1072
Joined:  2008-07-16
London, United Kingdom
 

hi there,

just wanted to thank everyone for the code here. Got my Featured products to work well based off this

one question though

I want to display featured products on each sub category page.
Currently i can show all featured products, but what i would to be able to do is only show the featured products within the category im viewing.

Anyone have thoughts on this one?

thanks

 Signature 

Magento Enterprise & Community Developer

 
Magento Community Magento Community
Magento Community
Magento Community
 
finch8243
Sr. Member
 
Total Posts:  79
Joined:  2007-08-31
 

Question—what if you only want to display products that are in stock?  Can you somehow modify addAttributeToFilter?

->addAttributeToFilter(’qty’, 1)

doesn’t work, but something like that?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 3