canal-web / magento-productselector

此包的最新版本(dev-master)没有可用的许可证信息。

创建一个带有动态筛选器的块,将重定向到预先筛选的分类页面

dev-master 2017-03-06 10:04 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:47:43 UTC


README

创建一个带有动态筛选器的块,将重定向到预先筛选的分类页面(使用 Manadev 筛选器)。

如何使用

安装模块后,您应该在属性编辑页面上有两个新的字段:"用于产品选择器"(为每个您想看到的输入设置是)和"选择器中属性的类型"(除非是特定情况如年份,否则保留默认值)。该属性必须在产品列表中使用。

在模板中调用该块

echo $this->getLayout()->createBlock('core/template')->setTemplate('productselector/selector-block.phtml')->toHtml();

或从xml布局中调用

<reference name="home">
  <block type="page/template_links" name="product_selector" template="productselector/selector-block.phtml"/>
</reference>

在系统 > 配置 > Canal Web > ProductSelector 中有一些基本配置(重要:您需要在此处指定要使用的属性集)。

重要:对于带重音的本地化,请确保检查 Manadev > SEO url keys(属性和选项不应带重音)

重要2:如果您通过composer安装此模块,请记住在系统 > 配置 > 开发者 > 模板中允许simlinks。

包含法语翻译