agencednd/attribute-description-bundle

Dnd bundle to add description under your attributes on products

1.1.0 2018-05-24 15:18 UTC

This package is auto-updated.

Last update: 2024-03-27 01:48:00 UTC


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.