name: Klaviyo
type: xml
logo: klaviyo.png
description: 'Klaviyo is more than just an SMS and email platform. It provides you with information about clients and their behavior. What makes them involved, and what makes them buy? No more mysteries to make your clients come back.'
guide_link: https://developers.klaviyo.com/en/docs/guide_link_to_syncing_a_custom_catalog_feed_to_klaviyo
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
      <products>
        {% for product in context.products %}
        <product>
          <ProductID><![CDATA[{{ product.entity_id }}]]></ProductID>
          <ProductSKU><![CDATA[{{ product.sku }}]]></ProductSKU>
          <ProductName><![CDATA[{{ product.name }}]]></ProductName>
          <ProductType><![CDATA[{{ product.category.name }}]]></ProductType>
          <Description><![CDATA[{{ product.description | plain | stripHtml }}]]></Description>
          <Price><![CDATA[{{ product.final_price | price }}]]></Price>
          <ProductURL><![CDATA[{{ product.url }}]]></ProductURL>
          <MainImageURL><![CDATA[{{ product.image }}]]></MainImageURL>
          <OtherImageURLs><![CDATA[{{ product.images }}]]></OtherImageURLs>
          <Categories><![CDATA[{{ product.category.path }}]]></Categories>
          <Vendor><![CDATA[{{ product.manufacturer }}]]></Vendor>
          <Tags><![CDATA[{{ product.meta_keyword }}]]></Tags>
        </product>
        {% endfor %}
      </products>
    </rss>
