Skip to content

Hvordan opretter jeg en gratis Product Feed-side på Shopify?

Shoparize E-commerce growth team
Download PDF Read below

Mål

Du opretter en produktfeed-side i Google Shopping-format, så du kan bruge den med Shoparize | partner ved at følge denne vejledning.

Indhold

  • Opret skabelon til produkttilbudsfeed-side
  • Tilføj produkttilførselside
  • Hvordan kan jeg tilføje EAN/GTIN-numre til mit produktfeed?

Instruktioner

Opret skabelon til produkttilbudsfeed-side

Log ind på din Shopify-konto, og gå til din butik.

Salgskanaler > Onlinebutik > Temaer

Klik på Handlinger knappen på dit aktive tema, og vælg Rediger kode

Klik for at Tilføje en ny fil under sektionen Skabeloner

Skriv filnavn til page.shoparize-feed.liquid

Når du klikker på knappen Create template, omdirigerer Shopify dig til at redigere denne nye sideskabelon.

Fjern alt i tekstfeltet, og kopier og indsæt skabelonen til produktfeedet nedenfor.

html

                                {%- 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: '&#38;', '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>
                              Ny
                                </g:condition>
                              
          
                                <g:description>
                              
                                <![CDATA[{{ product.description | strip_html | strip_newlines | replace: 'amp;', 'and' | replace: '&#38;', 'and' | replace: "..", ". " | replace: " ", " " | replace: "‘", "&#39;" | replace: "’", "&#39;" | replace: "&#8216;", "&#39;" | replace: "&#8217;", "&#39;" | replace: "&#8217;", "&#39;" | replace: "’", "&#39;" | replace: "“", "&#39;" | replace: "‘", "&#39;" | replace: "´", "&#39;" | replace: "“", "&#34;" | replace: "â€", "&#34;" | replace: "&#8211;", "-" | replace: "–", "-" | replace: "â€â€", "-" | replace: "–", "&mdash;" | replace: "—", "&mdash;" | replace: "%", "&#37;" | replace: "©", "&copy;" | replace: "®", "&reg;" | replace: "â„¢", "&trade;" | replace: "£", "&pound;" | replace: "ï¿­", "&#42;" | replace: "•", "&#42;" | replace: "â€Â", "&#39;" | replace: "&#233;", "e" | replace: "é", "e" | replace: "à ", "a" | replace: "ó", "o" | replace: "ê", "e" | replace: "Ø", "O" | replace: "&#8482;", "" | replace: "&#174;", "" }}]]>
                              
                                </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>
                              

Gem skabelonen

Tilføj produktside for feed

Gå til Sales Channels > Online Store > Pages, og tilføj en ny side.

Tilføj Shoparize Product Feed til titlen

Vælg shoparize-feed som temaskabelon

Gem side.

Dit produktfeed er klar.

Klik på Preview-siden for at se din nye produktside til feedet. Eller besøg https://yourshoppage.com/pages/shoparize-product-feed

Hvordan kan jeg tilføje EAN-/GTIN-numre til mit feed?

Du skal tilføje stregkodenumre i afsnittet Lager – Stregkode på produktsidens detaljer.

Download the full guide

Get the PDF version and keep the checklist close while you work through setup.

Want help choosing the right Shopping setup?

Talk to our team and we will recommend the right path for your store, market, and product feed.

Talk to our team