Create product feed page template
Login to your Shopify account and go to your shop.
Sales Channels > Online Store > Themes
Click the Actions button on your live theme and select Edit code.
Click Add a new file under the Templates section and type the file name page.pradar-feed.liquid.
After pressing Enter to create the template, Shopify will redirect you to edit this new page template.
Remove everything in the text box and copy and paste the Google Shopping product feed template below.
{%- 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: "é", "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}}{%- endif %}</g:gtin> </item> {% endfor %} {% endfor %} </channel> </rss>
Save the template.
Add a page for product feed
We need to create a new page to connect to the newly created product feed template.
Go to Sales Channels > Online Store > Pages and add a new page.
Put PriceRadar Shopping Feed as the title.
Select pradar-feed as the theme template.
Save the page.
Your product feed is ready. Click Preview page to see your new product feed page. Or you can visit:
https://yourshop.com/pages/pradar-product-feed
Can I add EAN/GTIN numbers to Shopify / Google Shopping Feed?
How to add a UPC/EAN or ISBN to your Shopify products.
You can add barcode numbers, such as GTIN/EAN, to the product detail page under the Stock – Barcode section.