开发者

Magento: Having layered navigation on a special view

I have a product attribute, artist, on each product. My 开发者_JAVA百科client wants me to have a page for each artist that displays that artist's products. They want it to look exactly like the category views (layered navigation, etc). Is there an easy way to accomplish this?


The best solution that I've found to this situation is to use the excellent Yoast Landing Pages module augmented with the Layered Navigation functionality from this sonassi blog post. That way, you don't have to create categories for each artist (sorry @Joseph, I've tried that approach and it's painful) but you get the advantages of Layered Nav.

You then create a static block with the artist description, photo, external links etc which will appear at the head of each listing page.

Actually it looks like Yoast's latest version now includes the sonassi code already, even better!


You may use Shop by Brand extension from Aitoc. But you need add layered navigation to the brand page.


The hack way to accomplish this is to have an actual category page for each artist and include the relevant products as such. This may fall out of sync, but doesn't require much effort on your part.

Another option would be to use the artist attribute as a filter on a product collection like this:

$collection = Mage::getModel("catalog/product")
    ->getCollection()
    ->addAttributeToFilter("artist", $someValue);

Hope that helps!

Thanks, Joe

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜