Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 2 of 3
“Featured” products block on home page - Not working --Help please
 
bloggleme
Sr. Member
 
Total Posts:  81
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:  117
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:  22
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:  120
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
Jr. Member
 
Total Posts:  25
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:  314
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
Jr. Member
 
Total Posts:  25
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:  35
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 

If this saved you an hour, feel free to check out our website!  Atlas Consultant

or

Feed the addiction ;o)
Donate a cup of coffee!

 
Magento Community Magento Community
Magento Community
Magento Community
 
sccr410
Member
 
Total Posts:  48
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
 
PJ
Jr. Member
 
Total Posts:  25
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
Member
 
Avatar
Total Posts:  62
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
 
brendan.
Sr. Member
 
Total Posts:  141
Joined:  2008-07-16
Sydney, Australia
 

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 1.1.6
PHP Version 5.2.6

 
Magento Community Magento Community
Magento Community
Magento Community
 
finch8243
Member
 
Total Posts:  48
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
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
39952 users|460 users currently online|85999 forum posts