Skip to content

Instantly share code, notes, and snippets.

@Osotoro
Osotoro / gist:f4db43a4f6636d159f3b079006922c86
Last active March 6, 2018 09:44
Shopify XML for marketplace
{% layout none %}
<?xml version="1.0" encoding="UTF-8"?>
<products>
{% paginate collections.all.products by 2000 %}{% for product in collections.marketplacename.products %}
<product>
<product_id>{{ product.id }}</product_id>
<brand>{{ product.vendor }}</brand>
<name>{{ product.title | strip_html | strip_newlines | escape | replace: 'amp;', 'and' | replace: '&#38;', 'and' | replace: "é", "e" | replace: "à ", "a" }}</name>
<reference>{{ product.handle }}</reference>
<color></color>