shopify

Shopify is an e-commerce platform that allows you to create, manage and expand online shops in a user-friendly way.

Create data feed in Shopify

Instructions

1. In the Shopify backend on the left-hand side Vertriebskanäle > Onlineshop > Themes

2. In the current theme click on the 3 dots > Code bearbeiten

3. On the left-hand side click Vorlagen > Neue/n/s Vorlage hinzufügen

4. Create the template as follows:

  • Wähle die Vorlage aus, die du erstellen möchtest: page
  • liquid
  • Dateiname: solute-feed

5. Insert the export template into the blank page:

Show export template for the feed configuration

***Disclaimer of liability***

solute gmbh accepts no liability for the programmes installed on your computer or for their protective equipment (virus scanner or firewall).

The customer is solely responsible for his own data security.

solute gmbh accepts no liability for faults not caused by solute gmbh, even if they are close in time to the support provided.

***By installing the plug-in software, you recognise solute gmbh's disclaimer ***.

***PLEASE COPY THE TEMPLATES BELOW (FROM THE FIRST "{" TO THE LAST "}" CURLY BRACKETS INTO THE CORRESPONDING TABS OF THE EXPORT MODULE***

{%- comment -%}
Credits:
-
Michael Larkin: http://www.pixallent.com
- Caroline Schnapp: http://www.11heavens.com
- Jamie: http://www.charlestoncreative.com
https://gist.github.com/cameroncowden/d1877c74acb352390720770406c266d6

Note: with terminal, you can: curl www.yourstore.com/pages/product-feed > product_feed.xml to generate the file.
{%-
endcomment -%}{%- layout none -%}
<
products>
{%
paginate collections.all.products by 4200000 %}
{% for
product in collections.all.products %}{% for variant in product.variants %}{% if variant.available %}
<
product>
  <item_group_id>{{ variant.product.id }}</item_group_id>
     <aid>{{ variant.id }}</aid>
<
name>{{ product.title | strip | strip_html| strip_newlines | escape | truncate: 200 }}{% if variant.title != 'Default Title'%} - {{ variant.title | strip | strip_html| strip_newlines | escape }}{% endif %}</name>
<
brand>{{ product.vendor | strip | strip_html| strip_newlines | escape | truncate: 70 }}</brand>
<
product_type>{% if product.type %}{{product.type | strip | strip_html| strip_newlines | escape }}{% endif %}</product_type>
<
shop_cat>{% for collection in product.collections %}{% if collection.title %}{{ collection.title | escape }}{% unless forloop.last %} > {% endunless %}{% endif %}{% endfor %}</shop_cat>
<
tags>{% for tag in product.tags %}{{ tag | escape }}{% unless forloop.last %},{% endunless %}{% endfor %}</tags>
<
ean>{{ variant.barcode }}</ean>
<
mpnr>{{ variant.sku }}</mpnr>
<
desc>{{ product.description | strip | strip_html| strip_newlines | escape | truncate: 4000 }}</desc>
<
image>{% if variant.image %}{{ variant.image | product_img_url: 'master' | replace: "//", "https://" }}{% else %}{{product.featured_image | product_img_url: 'master' | replace: "//", "https://" }}{% endif %}</image>
{%- if
product.images.size > 1 %}<images>{% for image in product.images %}{%- if forloop.first -%}{%- continue -%}{%- endif -%}{{ image | product_img_url: 'master' | replace: "//", "https://" }}{%- unless forloop.last -%},{% endunless %}{% endfor %}</images>{%- endif -%}
     <link>{{shop.url}}{{product.url}}{% if variant.id %}?variant={{ variant.id }}&amp;utm_source=web&amp;utm_medium=cpc&amp;utm_campaign=billiger{% else %}?utm_source=web&amp;utm_medium=cpc&amp;utm_campaign=billiger{% endif %}</link>
     <availability>{%- if variant.available -%}in stock{%- else -%}out of stock{%- endif -%}</availability>
<
old_price>{% if variant.compare_at_price and variant.price < variant.compare_at_price and variant.compare_at_price != variant.price %}{{ variant.compare_at_price | divided_by: 100.0 }}{% endif %}</old_price>
<
price>{% assign price=variant.price | divided_by: 100.0 %}{{ price }}</price>
<
stock_quantity>{% if variant.inventory_policy == 'continue' and variant.inventory_quantity < 1 %}42{% else %}{{ variant.inventory_quantity }}{% endif %}</stock_quantity>
<
upm>{% if variant.unit_price_measurement %}{{ variant.unit_price_measurement.quantity_value }} {{ variant.unit_price_measurement.quantity_unit }}{% endif %}</upm>
<
upbm>{% if variant.unit_price_measurement %}{{ variant.unit_price_measurement.reference_value }} {{ variant.unit_price_measurement.reference_unit }}{% endif %}</upbm>
<
dlv_cost>{% assign weight=variant.weight | weight_in_unit | divided_by: 1000.0 %}{% if price >= 50 %}0{% else %}4.9{% endif %}</dlv_cost>
<
dlv_cost_at>{% if price >= 100 %}0{% else %}6.9{% endif %}</dlv_cost_at>
<
dlv_time>{%- if variant.available -%}2 - 4 Werktage{%- else -%}nicht auf Lager{%- endif -%}</dlv_time>
<
weight>{% if variant.weight > 0 %}{{ variant.weight | weight_with_unit }}{% endif %}</weight>
{% for
product_option in product.options_with_values %}{% if product_option.name != 'Title' %}<{{ product_option.name | handleize }}>{% for option in variant.options %}{% if product_option.values contains option %}{{ option | strip | strip_html| strip_newlines | escape }}{% endif %}{% endfor %}</{{ product_option.name | handleize }}>{% endif %}{% endfor %}
{% if
product.metafields.custom.size > 0 %}{% for field in product.metafields.custom %}<meta_{{ field.first | handleize }}>{{ field.last | strip | strip_html| strip_newlines | escape }}</meta_{{ field.first | handleize }}>{% endfor %}{% endif %}
</
product>
{% endif %}{% endfor %}{% endfor %}
{%-
endpaginate -%}
</
products>

The following data fields cannot be read out directly, but must be stored permanently (or with rules depending on price, weight, etc.):

  • dlv_cost
  • dlv_time
  • dlv_cost_at (optional)

6. Adjust the fields that cannot be read according to the information in the shop. In the upper template, the delivery costs are determined based on the price (DE: up to €50: 4,90 € shipping costs, over 50€: Free shipping; AT: up to 100 €: 6,90 € shipping costs, over 100 €: Free shipping). Then save (Speichern) the template at the top right and click the button at the top left to return (Zurück) to the Shopify backend.

8. In the Shopify backend on the left side on pages (Seiten)

8. On the top right at Seite hinzufügen

9. Enter "solute-feed" as the title and select solute-feed as the theme template. The page must also be visible (sichtbar). After save (speichern), the feed can be accessed at the following URL: https://IhrShop.myshopify.de/pages/solute-feed

Integration of conversion tracking

Got any questions? Please contact us!

Our Technical Shop Support will be happy to help you.

Tel: +49 721-98993-60
(For direct dialling, select "1" in the voice menu and then "2".)

E-mail