定制 agencednd/attribute-description-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

agencednd/attribute-description-bundle

Composer 安装命令:

composer require agencednd/attribute-description-bundle

包简介

Dnd bundle to add description under your attributes on products

README 文档

README

This connector improve your workflow by adding descriptions to your attributes.

Features

  • Add/Delete/Edit a localizable description to your attribute
  • Import/Export attribute description with Akeneo import/export
  • The description is displayed on the product page under the attribute field

Requirements

AttributeDescriptionBundle Akeneo PIM Community Edition Akeneo PIM Enterprise Edition
v1.0.* v2.*
v1.1.* v2.* v2.*

Connector installation on Akeneo PIM

If it's not already done, install Akeneo PIM.

Get composer (with command line):

$ cd /my/pim/installation/dir
$ curl -sS https://getcomposer.org/installer | php

Then, install DnDAttributeDescriptionBundle with composer:

In your composer.json, add the following code dependending on your Akeneo PIM version:

  • In require:
{
    "agencednd/attribute-description-bundle": "1.1.*"
}

Next, enter the following command line:

$php composer.phar require agencednd/attribute-description-bundle

Enable the bundle in app/AppKernel.php file, in the registerBundles function, before the line return $bundles:

$bundles[] = new Dnd\Bundle\AttributeDescriptionBundle\DndAttributeDescriptionBundle();

Then you need to override your Attribute entity in app/config/config.yml (at the end of the file):

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

And enter the following command line:

$php bin/console doctrine:schema:update --force

Configuration

Just create/edit an attribute, a new tab has appeared and you can fill in your attribute description for each locale.

To import attribute description you need to add a new column to your classic attribute import file : description-{locale_code} (e.g: description-en_US).

About us

Founded by lovers of innovation and design, Agence Dn'D assists companies in the creation and development of customized digital (open source) solutions for web and E-commerce since 2004.

统计信息

  • 总下载量: 1.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 6
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2018-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固