Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

Allow multiple columns with same column name #8

Description

@floriansattler

It would be important to handle columns with same name in the csv-mapper.

Use case is to provide additional image links for a datafeed for google merchant center. Google always expects the same header additional_image_link.

The following code for example creates two additional_image_link columns but all of the containing URLs end with "-3" instead of "-1" and "-3"

  -
    type: "addColumn"
    toCol: "additional_image_link"
    valueTransformers:
      -
        type: "multipartString"
        parts:
          -
            valueTransformers:
              -
                type: "constant"
                value: "https://coeur.scene7.com/is/image/Coeur/"
          -
            valueTransformers:
              -
                type: "column"
                col: "ID"
          -
            valueTransformers:
              -
                type: "constant"
                value: "-1"
# setze zusätzliche Bild-Url aus Media-Url und SKU und -3 zusammen  
  -
    type: "addColumn"
    toCol: "additional_image_link"
    valueTransformers:
      -
        type: "multipartString"
        parts:
          -
            valueTransformers:
              -
                type: "column"
                col: "Media-Url"
          -
            valueTransformers:
              -
                type: "column"
                col: "ID"
          -
            valueTransformers:
              -
                type: "constant"
                value: "-3"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions