Sending categories to CommerceTools - alumio-int/akeneo-commercetools-templates GitHub Wiki

Description

The task that was created through Incoming "Akeneo - Fetch - Categories" will then processed further by the Route "Synchronize Categories - From Akeneo into CommerceTools" and will be send using this Outgoing.

This Outgoing will transform the Alumio Base Categories into CommerceTools one and check to create or to update category with the data from this outgoing previous iteration.

The sending in the Outgoing will be processed by the transformer:

  1. Alumio Base - Convert value - Localization localeCode into CommerceTools localeCode.
  2. CommerceTools - Prepare convert - Category - Parent from Alumio Base Category.
  3. CommerceTools - Convert - Category - from Alumio Base Category.
  4. CommerceTools - Check and send - Category.

Alumio Base - Convert value - Localization localeCode into CommerceTools localeCode

  • This transformer will convert the localCode value inside localizations into localCode that Commercetools use.
  • This will transform local code looking like "en_US" into "EN-US".

CommerceTools - Prepare convert - Category - Parent from Alumio Base Category.

  • This transformer will check the parent and map it into CommerceTools id.

CommerceTools - Convert - Category - from Alumio Base Category.

  • This transformer will finally convert Category from Alumio Base into CommerceTools.

CommerceTools - Check and send - Category.

  • This transformer will check current CommerceTools id from previous iteration of this transformer to determine either we need to create or update the category in the CommerceTools System.
  • Example of creation payload will look like this

image

  • Example of the update payload will look like this

image