I’ve been trying to figure this out for weeks now and can’t seem to find a solution. I’m sure other people are trying to figure out how to accomplish this as well. If you know how to achieve this please reply to this post.
I added the code you posted below what was there already. I also updated Set Product as New from Date on a couple products. For some reason they are still not showing up for me on the home page. Am i doing something wrong?
@ jeff.d Thanks for the advice.
Ok i was able to get to work, but the items are showing up Out Of Stock. Any one have a clue why they show up out of stock? I have the inventory set as Manage Stock - NO
@ nikefido
SOLVED! THANK YOU so much! i really appreciate everyone’s help. I’m sure you helped not only myself but many others with the same/similar problem. That’s what i love about the Magento Community they are a helpful group of people! By the way nikefido cool blog ill be sure to get your rss feed.
@ nikefido
SOLVED! THANK YOU so much! i really appreciate everyone’s help. I’m sure you helped not only myself but many others with the same/similar problem. That’s what i love about the Magento Community they are a helpful group of people! By the way nikefido cool blog ill be sure to get your rss feed.
Much appreciated :D The top Feed button (big one on the top) goes through addthis.com - the “real” feed is the link at the very bottom if you prefer to avoid it.
Ok one last thing. I remember seeing this in a post but cant seem to locate it. I know you can edit how many products you show up on the front page. Right now i have only 5 showing up. Does any one know where the file is i need to edit in order to change the amount of products i can view?
This will control the looping code that shows each product. It keeps going until $i is greater than 5. (Which means it will show up to 6 products, because $i starts at zero).
You can change this number to any amount of products. (Just remember that any number n you choose, you need to change 5 to n - 1
You might want to randomize the results set. Do do this you add some new code . see below
$products->getSelect()->order('rand()');
put this code before the following
$this->setProductCollection($products);
One final thing, the above example is done against the core files. This is not advisable if you plan on upgrading in the future. You can put this code into a custom local module class that is out of the upgrade path. Again, there is a wiki on creating your own modules/classes
My front page is now showing new and recentrly viewed products. How do I keep it from showing recently viewed? And since you said this is core code, wont our work get erased at the next update?