{% if editor_products_payload %}

Canonical Payload Editor ({{ editor_products_payload | length }})

Expand payload cards, edit fields, then click Save all changes to refresh the batch export payload.

{% for product in editor_products_payload %}
{{ product.title or 'Untitled' }} {{ (product.variants or []) | length }} variant{{ 's' if (product.variants or []) | length != 1 else '' }} {% if product.source and product.source.platform %}· {{ product.source.platform }}{% endif %}
{% set primary_path = [] %} {% if product.taxonomy and product.taxonomy.primary %} {% set primary_path = product.taxonomy.primary %} {% endif %}
{% set product_image_urls = product.media | selectattr('type', 'equalto', 'image') | map(attribute='url') | list if product.media else [] %}
Variants ({{ (product.variants or []) | length }})
{% for variant in product.variants or [] %} {% set price_current = variant.price.current if variant.price and variant.price.current else none %}

Variant {{ loop.index }}

ID: {{ variant.id or '' }}

Identity

Pricing

Inventory

Weight

{% set wunit = variant.weight.unit if variant.weight and variant.weight.unit else 'g' %}

Media

{% set vmedia = variant.media or [] %} {% set vimg = '' %} {% if vmedia and vmedia[0] and vmedia[0].url %} {% set vimg = vmedia[0].url %} {% endif %}
{% endfor %}
{% endfor %}

{% endif %}