Giter VIP home page Giter VIP logo

Comments (3)

nidup avatar nidup commented on August 24, 2024

Hi mannydoaba,

The installer fixtures allows to import these data (format yml) when you setup a PIM project, here an example of data https://github.com/akeneo/pim-community-dev/tree/1.1/src/Pim/Bundle/InstallerBundle/Resources/fixtures/demo_dev

This data set is defined in app/config/parameters.yml and is installed with the pim:install command, you can define your own set.

We don't have this native csv import job for now and don't have plan to implement it in a near future.

I can give you some hints to implement it, if you would contribute it, we would be glad to help, review and merge your pull request. A good start point about connector part http://docs.akeneo.com/1.1/index.html

The expected csv format could be the following,

code;label-en_US;label-fr_FR;attributes;attributeAsLabel;requirements-ecommerce;requirements-mobile
mug;Mug;Tasse;sku,name,short_description,manufacturer,color,price,weight;name;sku,name,color,price;sku,color

en_US and fr_FR are locales, ecommerce and mobile are the channels.

You can define a new csv_family_import job by taking inspiration from existing one https://github.com/akeneo/pim-community-dev/blob/1.1/src/Pim/Bundle/BaseConnectorBundle/Resources/config/batch_jobs.yml#L91

I think you can use the processor pim_base_connector.processor.family in the new job as we use it for the family import with yml format https://github.com/akeneo/pim-community-dev/blob/1.1/src/Pim/Bundle/BaseConnectorBundle/Resources/config/processors.yml#L101

Let me know if you begin to implement it and if encounter any issue.

Thank you,

from pim-community-dev.

mrVrAlex avatar mrVrAlex commented on August 24, 2024

I implemented family import like I said above, but I got this error:

Neither the property "requirements" nor one of the methods "setRequirements()", "__set()" or "__call()" exist and have public access in class "Pim\Bundle\CatalogBundle\Entity\FamilyTranslation". 

Akeneo PIM v1.3.1
Used for batch job:
processor: pim_base_connector.processor.family
writer: pim_base_connector.writer.doctrine

from pim-community-dev.

panploenes avatar panploenes commented on August 24, 2024

Im stuck there too.

from pim-community-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.