name: CJ
type: xml
logo: cj.png
description: 'CJ Affiliate (formerly Commission Junction) is the leading global affiliate marketing network, specializing in pay-for-performance programs that drive results for businesses around the world. With an astounding track record since 1998, this massive affiliate marketing network has 15 offices worldwide and over 3,000 merchants.'
guide_link: https://developers.cj.com/docs/data-imports/product-feeds
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE product_catalog_data SYSTEM "http://www.jdoqocy.com/content/dtd/product_catalog_data_1_1.dtd">
    <product_catalog_data>
      <header>
        <datefmt>{{context.time}}</datefmt>
        <aid></aid>
        <cid></cid>
        <subid></subid>
      </header>
      {% for product in context.products %}
      <product>
        <name><![CDATA[{{ product.name | truncate: '150' }}]]></name>
        <description><![CDATA[{{ product.description | plain | stripHtml }}]]></description>
        <sku><![CDATA[{{ product.sku }}]]></sku>
        <buyurl><![CDATA[{{ product.url }}]]></buyurl>
        <imageurl><![CDATA[{{ product.image }}]]></imageurl>
        <price>{{ product.price | price }}</price>
        <currency>{{ context.store.base_currency_code }}</currency>
        <advertisercategory><![CDATA[{{ product.category }}]]></advertisercategory>
        <manufacturer><![CDATA[{{ product.manufacturer }}]]></manufacturer>
        <upc>{{ product.upc }}</upc>
        {% if product.is_in_stock %}
        <instock>Yes</instock>
        {% else %}
        <instock>No</instock>
        {% endif %}
      </product>
      {% endfor %}
    </product_catalog_data>
