Mål
Du skapar en produktflödessida i Google Shopping-format för att använda den med Shoparize | partner genom att följa den här guiden.
Innehåll
- Skapa sidmall för produktflöde
- Lägg till produktsideflöde
- Hur kan jag lägga till EAN-/GTIN-nummer i mitt produktflöde?
Instruktioner
Skapa sidmall för produktflöde
Logga in på ditt Shopify-konto och gå till din butik.
Försäljningskanaler > Onlinebutik > Teman
Klicka på Åtgärder knappen i ditt aktiva tema och välj Redigera kod
Klicka för att Lägga till en ny fil under avsnittet Mallar
Skriv filnamn till page.shoparize-feed.liquid
När du klickar på knappen Create template omdirigerar Shopify dig till att redigera den nya sidmallen.
Ta bort allt i textrutan och kopiera och klistra sedan in produktflödesmallen nedan.
{%- layout none -%}
<
?xml version
=
"1.0"
encoding
=
"UTF-8"
?
>
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<channel>
<title>
{{shop.name | escape }}
Products
</title>
<link>
{{shop.url}}
</link>
{% for collection in collections %}
{% for product in collection.products %}
<!-- Item #{% increment index %} -->
<item>
<g:id>
{{product.id}}
</g:id>
<g:title>
<![CDATA[{{ product.title | strip_html | strip_newlines | escape | replace: 'amp;', 'and' | replace: '&', 'and' | replace: "é", "e" | replace: "à ", "a" }}]]>
</g:title>
<g:brand>
{{product.vendor | escape }}
</g:brand>
<g:product_type>
{{product.type | escape }}
</g:product_type>
<g:condition>
New
</g:condition>
<g:description>
<![CDATA[{{ product.description | strip_html | strip_newlines | replace: 'amp;', 'and' | replace: '&', 'and' | replace: "..", ". " | replace: " ", " " | replace: "‘", "'" | replace: "’", "'" | replace: "‘", "'" | replace: "’", "'" | replace: "’", "'" | replace: "’", "'" | replace: "“", "'" | replace: "‘", "'" | replace: "´", "'" | replace: "“", """ | replace: "â€", """ | replace: "–", "-" | replace: "–", "-" | replace: "â€â€", "-" | replace: "–", "—" | replace: "—", "—" | replace: "%", "%" | replace: "©", "©" | replace: "®", "®" | replace: "â„¢", "™" | replace: "£", "£" | replace: "ï¿Â", "*" | replace: "•", "*" | replace: "â€Â", "'" | replace: "é", "e" | replace: "é", "e" | replace: "à ", "a" | replace: "ó", "o" | replace: "ê", "e" | replace: "Ø", "O" | replace: "™", "" | replace: "®", "" }}]]>
</g:description>
<g:image_link>
{{product.featured_image | product_img_url: 'large'}}
</g:image_link>
<g:link>
{{shop.url}}
{{product.url}}
</g:link>
<g:price>
{{product.compare_at_price | money_without_currency}}
{{shop.currency}}
</g:price>
<g:sale_price>
{{product.price | money_without_currency}}
{{shop.currency}}
</g:sale_price>
<g:availability>
{% if product.available %}
in_stock
{%- else -%}
out_of_stock
{%- endif %}
</g:availability>
<g:gtin>
{%- assign current_variant = product.selected_or_first_available_variant -%}
{% if current_variant.barcode %}
{{current_variant.barcode}}
{%- else -%}
{%- endif %}
</g:gtin>
</item>
{% endfor %}
{% endfor %}
</channel>
</rss>
Spara mallen
Lägg till produkflödesida
Gå till Sales Channels > Online Store > Pages och lägg till en ny sida.
Lägg till Shoparize Product Feed i titel
Välj shoparize-feed som temamall
Spara sida.
Din produktfeed är klar.
Klicka på Förhandsgranska sida för att se din nya produktsida för flödet. Eller besök https://yourshoppage.com/pages/shoparize-product-feed
Hur kan jag lägga till EAN-/GTIN-nummer i mitt flöde?
Du behöver lägga till streckkodsnummer i avsnittet Lager – Streckkod på produktsidans detaljer.