通过在Magento中选择特定" Attribute, Categories, price"来列出产品



访问此链接 : http://www.firstcry.com/toys-and-gaming?ref2=menu_dd

在"菜单"下,您可以看到"玩具查找器",在其下方

"1.儿童年龄","2.分类","3.价格"。

我们可以通过选择上述 3 个选项来选择产品。

在"购物方式"下方,我们可以在每个站点中看到这些选项。

如何在产品列表页或主页中显示这些选项..?...

请帮我找到解决方案。

提前谢谢。

因此,首先您必须了解它的外观,magento可以选择显示块的路径等,就像一些研究一样,在你知道他在哪里以及他如何出现之后,您将有一些想法添加到家中。

在学习其操作后,您可以在家尝试的一种方式。

例:

// Create a file in the template folder, and add the filter code.
// In my example I created a page called test in "template/page/html".
// And to display in the home, I used that way    
    <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('page/html/test.phtml')->toHtml();?>
    <?php echo $this->getChildHtml('test'); ?> //I used the name of page without extension.
// this way you can add some code in a some page and use somewhere.
还有其他方法,

例如通过xml,复制或移动块,但是在您需要知道它是如何发布的之前,然后搜索最佳方法。

我以任何方式帮助你。

最新更新