2017 © Pedro PelĂĄez
 

symfony-bundle advanced-csv-connector-bundle

Advanced CSV Connector for Akeneo

image

clickandmortar/advanced-csv-connector-bundle

Advanced CSV Connector for Akeneo

  • Monday, July 23, 2018
  • by simoncarre
  • Repository
  • 1 Watchers
  • 0 Stars
  • 128 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 25 Versions
  • 73 % Grown

The README.md

Advanced CSV Connector - C&M

Advanced CSV Connector is an extension of classic Akeneo CSV Connector. It allows to customize columns mapping on import or export., (*1)

Made with :blue_heart: by C&M, (*2)

Versions

Bundle version Akeneo version
v7.0.* v7.0.*
v6.0.* v6.0.*
v5.0.* v5.0.*
v1.8.* v4.0.*
v1.7.* v3.2.* (EE)
v1.6.* v3.1.* / v3.2.*
v1.5.* v3.1.* / v3.2.*
v1.4.* v2.3.*
v1.3.* v2.1.*

Optional

You can use php-lua package to update your values dynamically during import or export. For LUA scripts available functions and libraries have been limited for security reasons. You can use:, (*3)

  • string
  • math
  • ipairs
  • load
  • next
  • pairs
  • rawequal
  • rawgetwget
  • rawlen
  • rawset
  • select
  • tonumber
  • tostring
  • type

This package is not a requirement. A classic PHP method can also be used., (*4)

Installation

Download the Bundle

Update your composer.json file to use our fork of Custom entity bundle in repositories node:, (*5)

"repositories": [
        ...
        {
            "type": "vcs",
            "url": "https://github.com/ClickAndMortar/CustomEntityBundle"
        }
        ...
    ],

And add our bundle:, (*6)

$ composer require "clickandmortar/advanced-csv-connector-bundle":"<version-wanted>.*"

Example for last version:, (*7)

$ composer require "clickandmortar/advanced-csv-connector-bundle":"7.0.*"

Enable the Bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:, (*8)

<?php

return [
    // ...
    Pim\Bundle\CustomEntityBundle\PimCustomEntityBundle::class => ['all' => true],
    ClickAndMortar\AdvancedCsvConnectorBundle\ClickAndMortarAdvancedCsvConnectorBundle::class => ['all' => true]
];

Update your config/routes/routes.yml file:, (*9)

pim_customentity:
        prefix: /reference-data
        resource: "@PimCustomEntityBundle/Resources/config/routing.yml"

candm_advanced_csv_connector:
    prefix: /candm-advanced-csv-connector
    resource: "@ClickAndMortarAdvancedCsvConnectorBundle/Resources/config/routing.yml"

And finally clear cache and update database:, (*10)

rm -rf var/cache/*
php bin/console --env=prod pim:installer:assets --symlink --clean
yarn run webpack
php bin/console doctrine:schema:update --force

Usage

Import

To create a new import mapping, go to Référenciel / Mappings d'import and click on Create top right button. You can add as many mapping lines as you want by clicking on Ajouter une ligne., (*11)

Some explanations for table columns:, (*12)

  • Attribut (mandatory): Attribute code in your Akeneo project (you can use suffixes like -fr_FR or -EUR for locales, channels, currencies, ...)
  • Nom de la colonne (mandatory): Column name in your file to import
  • Transformation: LUA script name or PHP method name to update value after mapping. Example: Uppercase, lowercase, ... (you can create a new LUA script under RĂ©fĂ©renciel / Scripts LUA).
  • Valeur par dĂ©faut: Default value for attribute if empty data in file
  • Identifiant (mandatory): Used to defined main identifier attribute of product
  • Uniquement Ă  la crĂ©ation: Set attribute value only if product is new (checked with identifier attribute)
  • Effacer si null: Remove key from item mapping if value is null
  • Supprimer: Click on this cell to delete mapping line

Once mapping is saved, go to Imports part and create a new job with type Import des produits avancé (CSV). After job creation, go to edition mode and update Mapping parameter in global parameters tab., (*13)

Export

To create a new export mapping, go to Référenciel / Mappings d'export and click on Create top right button. You can add as many mapping lines as you want by clicking on Ajouter une ligne., (*14)

Some explanations for table columns:, (*15)

  • Attribut (mandatory): Attribute code in your Akeneo project (you can use suffixes like -fr_FR or -EUR for locales, channels, currencies, ...)
  • Nom de la colonne (mandatory): Column name in your file to export
  • Valeur forcĂ©e: Force a value (erase given attribute value from Akeneo)
  • Transformation: LUA script name or PHP method name to update value after mapping. Example: Uppercase, lowercase, ... (you can create a new LUA script under RĂ©fĂ©renciel / Scripts LUA)
  • Utiliser le libellĂ©: Boolean to get the label associated to the code given (for attribute options or custom entities)
  • Langue: Select a specific locale for the label to export (linked to Utiliser le libellĂ© column)
  • Longueur max.: Integer use to shorten attribute value if necessary
  • Valeur par dĂ©faut: Default value for column if empty attribute value
  • Supprimer: Click on this cell to delete mapping line

Once mapping is saved, go to Exports part and create a new job with type Export des produits avancé (CSV). After job creation, go to edition mode and update Mapping parameter in global parameters tab., (*16)

The Versions

23/07 2018

dev-master

9999999-dev

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

23/07 2018

1.3.11

1.3.11.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

23/07 2018

1.3.10

1.3.10.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

20/07 2018

1.3.9

1.3.9.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

20/07 2018

1.3.8

1.3.8.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

29/06 2018

1.3.7

1.3.7.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

29/06 2018

1.3.6

1.3.6.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

29/06 2018

1.3.5

1.3.5.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

22/06 2018

1.3.4

1.3.4.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

22/06 2018

1.3.3

1.3.3.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

22/06 2018

1.3.2

1.3.2.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

22/06 2018

1.3.1

1.3.1.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

21/06 2018

1.3.0

1.3.0.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

06/06 2018

1.2.6

1.2.6.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

28/05 2018

1.2.5

1.2.5.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

23/05 2018

1.2.4

1.2.4.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

23/05 2018

1.2.3

1.2.3.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

18/05 2018

1.2.2

1.2.2.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

25/04 2018

1.2.1

1.2.1.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

25/04 2018

1.2.0

1.2.0.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

23/04 2018

1.1.0

1.1.0.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

16/04 2018

1.0.3

1.0.3.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

16/04 2018

1.0.2

1.0.2.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

11/04 2018

1.0.1

1.0.1.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE

20/03 2018

1.0.0

1.0.0.0

Advanced CSV Connector for Akeneo

  Sources   Download

MIT

The Requires

 

by Simon CARRE