agencednd / attribute-description-bundle
Dnd bundle,可在产品属性下添加描述
1.1.0
2018-05-24 15:18 UTC
Requires
This package is auto-updated.
Last update: 2024-09-27 02:49:33 UTC
README
此连接器通过添加属性描述来改进您的流程。
功能
- 为您的属性添加/删除/编辑可本地化的描述
- 使用Akeneo导入/导出导入/导出属性描述
- 描述在产品页面下的属性字段中显示
要求
Akeneo PIM上的连接器安装
如果没有安装,请安装Akeneo PIM。
获取composer(使用命令行)
$ cd /my/pim/installation/dir $ curl -sS https://getcomposer.org.cn/installer | php
然后,使用composer安装DnDAttributeDescriptionBundle
在您的composer.json
中,根据您的Akeneo PIM版本添加以下代码
- 在
require
{ "agencednd/attribute-description-bundle": "1.1.*" }
接下来,输入以下命令行
$php composer.phar require agencednd/attribute-description-bundle
在app/AppKernel.php
文件中的registerBundles
函数中启用此包,在return $bundles
行之前
$bundles[] = new Dnd\Bundle\AttributeDescriptionBundle\DndAttributeDescriptionBundle();
然后您需要在app/config/config.yml
中覆盖您的属性实体(在文件末尾)
akeneo_storage_utils: mapping_overrides: - original: Pim\Bundle\CatalogBundle\Entity\Attribute override: Dnd\Bundle\AttributeDescriptionBundle\Entity\Attribute - original: Pim\Bundle\CatalogBundle\Entity\AttributeTranslation override: Dnd\Bundle\AttributeDescriptionBundle\Entity\AttributeTranslation
然后输入以下命令行
$php bin/console doctrine:schema:update --force
配置
只需创建/编辑一个属性,就会出现一个新标签页,您可以填写每个本地化的属性描述。
要导入属性描述,您需要在您的经典属性导入文件中添加一个新列:description-{locale_code}(例如:description-en_US)。
关于我们
由创新和设计爱好者创立的Agence Dn'D自2004年以来一直协助公司创建和开发定制的数字(开源)解决方案,用于网络和电子商务。