Shopify ist eine E-Commerce-Plattform, mit der man benutzerfreundlich Online-Shops erstellen, verwalten und erweitern kann.
1. Im Shopify Backend auf der linken Seite Vertriebskanäle > Onlineshop > Themes
2. Im aktuellen Theme auf die 3 Punkte > Code bearbeiten
3. Auf der linken Seite unter Vorlagen > Neue/n/s Vorlage hinzufügen
4. Die Vorlage folgendermaßen erstellen:
5. Die Exportvorlage in die leere Seite einfügen:
***Haftungsausschluss***
Die solute gmbh übernimmt keine Gewährleistung für die auf Ihrem Computer installierten Programme, sowie deren Schutzeinrichtungen (Virenscanner oder Firewall).
Der Kunde ist ausschließlich selbst für seine Datensicherheit verantwortlich.
Die solute gmbh übernimmt keine Haftung für von ihr nicht verursachte Störungen, auch wenn sie in zeitliche Nähe zum geleisteten Support stehen.
***Mit dem installieren der Plugin-Software erkennen Sie den Haftungsausschluss der solute gmbh an.***
***BITTE KOPIEREN SIE UNTENSTHENDE VORLAGEN (AB DER ERSTEN "{" BIS ZUR LETZTEN "}" GESCHWEIFTEN KLAMMER IN DIE ENTSPRECHENDEN REITER DES EXPORTMODULS***
{%- 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>
<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 }}&utm_source=web&utm_medium=cpc&utm_campaign=billiger{% else %}?utm_source=web&utm_medium=cpc&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 %}{% if field.value and field.value != '' %}<meta_{{ field.first | handleize }}>{{ field.value }}</meta_{{ field.first | handleize }}>{% endif %}{% endfor %}{% endif %}
</product>
{% endif %}{% endfor %}{% endfor %}
{%- endpaginate -%}
Folgende Datenfelder können nicht direkt ausgelesen werden, sondern müssen fest (oder mit Regeln abhängig von Preis, Gewicht, etc.) hinterlegt werden:
6. Die nicht auslesbaren Felder entsprechend der Informationen im Shop
anpassen. In der oberen Vorlage werden die Lieferkosten anhand des
Preises festgelegt (DE: bis 50 €: 4,90 € Versandkosten, über 50 €:
Versandkostenfrei; AT: bis 100 €: 6,90 € Versandkosten, über 100 €:
Versandkostenfrei). Anschließend die Vorlage rechts oben Speichern und mit den Knopf links oben Zurück zum Shopify Backend.
7. Im Shopify Backend auf der linken Seite auf Seiten
8. Oben rechts auf Seite hinzufügen
9. Als Titel "solute-feed" eingeben und als Theme-Vorlage solute-feed auswählen. Außerdem muss die Seite Sichtbar sein. Nach dem Speichern ist der Feed unter folgender URL abrufbar: https://IhrShop.myshopify.de/pages/solute-feed
Unser Technischer Shop Support hilft Dir gerne weiter.
Tel: +49 721-98993-60
(Wähle zur direkten Durchwahl im Sprachmenü "1" und anschließend "2" )