Defining feed format by Channel type

How to configure the output format of a CSV, XLSX, XML, or NDJSON Channel in Plytix

Depending on where you're sending your feed, you may need to configure the output to match that platform's requirements. Each Channel type, CSV/XLSX, XML, and NDJSON, has its own Format tab with options specific to that format. This article covers all three.

Refer to an example feed, if available, from wherever your Channel is being sent to, for guidance on how to format your feed.

Defining output labels in CSV and XLSX Channels

There are two ways to change your attributes' output labels, to adapt them to the requirements of the Channel you're sending data to:

  1. Manually change the output labels in the Attributes tab.
  2. Upload a CSV template.

Inside a Channel's Attributes tab, you can manually change an attribute's output label to match the requirements of your destination Channel. Click the output label you want to change, edit it, and press Enter to save.

If you have a template from a specific Channel you need to mirror, you can upload it as a CSV template, so Plytix maps the required fields directly against your attributes in the PIM, see Uploading a CSV Template for the full walkthrough.

Setting the product listing order in CSV and XLSX Channels

Define how your Channel's output is formatted from the Format tab of the Channel's detail page.

Here you can decide the order your products are listed in: whether parents or variants come first.

Sorting attributes in CSV and XLSX Channels

From the Attribute sorting dropdown, choose from:

  • Manual
  • Alphabetically (A-Z)
  • Alphabetically (Z-A)

If sorting manually, drag and drop columns into your preferred order. If sorting alphabetically, attributes are sorted based on the output label defined in the Attributes tab of the Channel.

Choosing attribute fill values in CSV and XLSX Channels

You can choose to include data only for parent products, variants, sub-variants, or all levels, on an attribute-by-attribute basis. You can also define the value separator for attributes with more than one value, for example, categories.

Understanding the XML feed format

The standard layout of a newly created XML feed in Plytix comes pre-populated with:

  • The header (this can't be changed).
  • A products node with a subnode containing all your products and attributes, pre-populated based on your settings from the Attributes and Products tabs.

On the left, you'll see the feed you're building. On the right, a preview of how your feed currently looks.

 Refer to the documentation of the feed consumer for a blueprint of how to build your feed template. Example feeds can be helpful when building yours out in Plytix.

Adding nodes to an XML feed

Press + Add Node to insert a new node, or click the Add Subnode icon to insert a node nested below the one you've selected.

Click the > icon to expand or collapse a node. If a node has multiple sub-nodes at the same hierarchy level, drag and drop to reorder them.

Configuring nodes in an XML feed

Click the pencil icon on a node to open its settings panel on the right side of your screen.

Here you can configure:

  • Your Node tag:
    • Standard tag: <node></node>
    • Self-closing tag: <node />

    Choose your preferred Closing tag option.

 Self-closing tags can’t be used for parent tags with a child.

  • The node's placement, by choosing a different parent tag.
  • Additional attributes.
  • A static attribute value.
  • A Separator, in place of Subnodes, for when you need to join multiple values with custom opening and closing tags rather than a simple character like a comma.

Example: adding multiple images to a Google Shopping XML feed. Google Shopping expects each additional image wrapped in its own tag, like <g:additional_image_link>https://www.example.com/image1.jpg</g:additional_image_link>, rather than a comma-separated list inside one tag. Instead of creating a separate node for every image, edit the media gallery node's settings, choose Separator instead of Subnodes, and set the separator value to </g:additional_image_link> <g:additional_image_link>. This uses the closing and opening tags themselves as the separator between image URLs, so Plytix generates one correctly tagged entry per image automatically.

Setting the product listing order in NDJSON Channels

Define how your Channel's output is formatted from the Format tab of the Channel's detail page.

Here you can decide the order your products are listed in: whether parents or variants come first.

 Due to the nature of NDJSON, it isn’t possible to change the order of attributes within an NDJSON Channel.

Choosing attribute fill values in NDJSON Channels

You can choose to include data only for parent products, variants, sub-variants, or all levels, on an attribute-by-attribute basis.

Frequently Asked Questions

In a CSV or XLSX Channel, click the output label in the Channel’s Attributes tab, edit it, and press Enter.

In XML Channels, yes. You can change the order of nodes in an XML feed by dragging and dropping sibling nodes. NDJSON attributes can’t be reordered, because of how the format works.

A self-closing tag, like <node />, can’t contain any child nodes. If a node needs to contain other nodes, use a standard tag, like <node></node>.

On your media gallery node, use a Separator instead of Subnodes, and set the separator to the closing and opening tags Google expects between images, for example </g:additional_image_link> <g:additional_image_link>, rather than a comma. For a full example, see the Configuring nodes section of this article.

Yes. In CSV, XML, and NDJSON Channels, you can choose whether each attribute applies to parent products, variants, sub-variants, or all levels.