akeneo-labs / classification-rule-bundle
Akeneo PIM 企业版扩展包,用于使用规则引擎对产品进行分类
v1.2.0
2016-09-13 09:27 UTC
Requires
- akeneo/pim-enterprise-dev: ~1.6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- henrikbjorn/phpspec-code-coverage: 1.0.*
- phpmd/phpmd: 2.3.*
- phpspec/phpspec: 2.1.*
- squizlabs/php_codesniffer: 2.3.*
README
此扩展包扩展了 Akeneo PIM 企业版 CatalogRuleBundle,增加了从定义的树中取消分类产品的可能性。
要求
安装
您可以使用 composer 安装此扩展包
php composer.phar require akeneo-labs/classification-rule-bundle:1.2.*
在 app/AppKernel.php
文件的 registerBundles
方法中启用扩展包
$bundles = [ // ... new PimEnterprise\Bundle\ClassificationRuleBundle\PimEnterpriseClassificationRuleBundle(), ];
现在让我们清除您的缓存并重新安装您的资产
php app/console cache:clear --env=prod php app/console pim:installer:assets --env=prod
文档
规则定义
此扩展包是 CatalogRuleBundle 的扩展,因此它使用相同的条件,并添加了一组新的动作
unclassify
:从类别中删除产品。如果您将类别代码设置为null
,则将取消分类产品。您还可以定义一个树,仅取消分类此树中的产品类别。
示例
查看 规则定义文档 以查看更多条件示例。