basecom/shopware-connector

Akeneo to Shopware Connector - Export only

2.1.0 2017-10-10 07:31 UTC

This package is auto-updated.

Last update: 2024-03-27 19:53:50 UTC


README

Requirements

ShopwareConnectorBundle Akeneo PIM Community Edition
v1.0.* v1.4.*, v1.5.*
v2.* v1.6.*

Installation

Enable the bundle in the app/AppKernel.php file in the registerBundles() method:

    $bundles = [
        // ...
        new \Basecom\Bundle\ShopwareConnectorBundle\BasecomShopwareConnectorBundle(),
    ]

Add the following to akeneo_storage_utils in the app/config/config.yml file:

akeneo_storage_utils:
    mapping_overrides:
        -
            original: Pim\Bundle\CatalogBundle\Entity\Category
            override: Basecom\Bundle\ShopwareConnectorBundle\Entity\Category
        -
            original: Pim\Bundle\CatalogBundle\Entity\Family
            override: Basecom\Bundle\ShopwareConnectorBundle\Entity\Family
        -
            original: Akeneo\Component\FileStorage\Model\FileInfo
            override: Basecom\Bundle\ShopwareConnectorBundle\Entity\FileInfo
        -
            original: Pim\Component\Catalog\Model\Product
            override: Basecom\Bundle\ShopwareConnectorBundle\Entity\Product

Clear you cache and update your database:

    php app/console cache:clear --env=prod
    php app/console doctrine:schema:update --force

Documentation

General Exporter Setup

To use the exporter to its full extend you are required to install a Shopware extension which allows you to import all custom attributes and shops into Akeneo. After installing the extension on the Shopware side, you need to create the import job in Akeneo and run it once.

Export Job

Be sure to fill the correct API details which Shopware is displaying in its user management tab. After the general API information is filled, the attribute mapping has to be done by hand at which point you need to fill in the Akeneo attribute names.