name: Custom Parquet
type: parquet
logo: custom_parquet.png
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    {% for product in context.products %}
    <product xsi:record="true">
      <id>{{ product.entity_id }}</id>
      <item_group_id xsi:omitEmpty="true">{{ product.parent.entity_id }}</item_group_id>
      <sku>{{ product.sku }}</sku>
      <title>{{ product.name | truncate: '70' }}</title>
      <description>{{ product.description | stripHtml | plain | truncate: '5000' }}</description>
      <link>{{ product.url }}</link>
      <price xsi:type="xs:decimal">{{ product.final_price | price }}</price>
      <product_type>{{ product.category.path }}</product_type>
      <image_link>{{ product.image }}</image_link>
      <additional_image_links xsi:list="true">
        {% for image in product.gallery %}
        <image_link>{{ image }}</image_link>
        {% endfor %}
      </additional_image_links>
      <availability>{{ product.stock_status }}</availability>
      <brand>{{ product.manufacturer }}</brand>
      <weight xsi:type="xs:decimal" xsi:omitEmpty="true">{{ product.weight }}</weight>
      <gtin>{{ product.upc }}</gtin>
      <size>{{ product.size }}</size>
      <color>{{ product.color }}</color>
    </product>
    {% endfor %}
