This probably isn’t an application you guys have considered, but I need to make sure I don’t duplicate product listings on my homepage. Reason behind this is that I’ve figured out how to list multiple categories on a page and I have them output in random order, but the problem is that some products exist in multiple categories.
I’d like to somehow build an exclude list as I progress through building the page. I thought I could make a public array variable in my custom module, but it seems that each call to the class in a new object and the array isn’t being carried on.
I’m new to PHP5, old hat at PHP, so if there is a way I can attach a variable to the Mage object that’d be great.
If you’d like to see what I’ve done so far go here: http://www.boom-studios.net.
I’ve got tons more styling to do over the week-end and it’s a little slow right now, but I hope it’ll improve when we move it to another host.
Thanks for any input.