{% if editor_product_payload %}

Canonical Payload Editor

Edit normalized fields, then click Save changes to update the in-memory export payload used by the playground export form.

{% set primary_path = [] %} {% if editor_product_payload.taxonomy and editor_product_payload.taxonomy.primary %} {% set primary_path = editor_product_payload.taxonomy.primary %} {% endif %}
{% set product_image_urls = editor_product_payload.media | selectattr('type', 'equalto', 'image') | map(attribute='url') | list %}
Variants ({{ (editor_product_payload.variants or []) | length }})
{% for variant in editor_product_payload.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 %}

{% endif %}