Skip to content

Instantly share code, notes, and snippets.

@ryandoss
Created February 16, 2016 22:30
Show Gist options
  • Save ryandoss/b580bd54ea461f965965 to your computer and use it in GitHub Desktop.
Save ryandoss/b580bd54ea461f965965 to your computer and use it in GitHub Desktop.
Prodcut Feed Needs
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
{exp:channel:entries channel="product" limit="3000" category="{segment_3}" dynamic="no"}
{exp:store:product entry_id="{entry_id}" disable_javascript="yes" disable_form="yes"}
<item>
<title><![CDATA[{title}]]></title>
<link>{url_title_path="products/single"}</link>
<description><![CDATA[{product_description}]]></description>
<g:id>{entry_id}</g:id>
<g:item_group_id>{categories show_group="1"}{category_url_title}{/categories}</g:item_group_id>
<g:product_type>{categories show_group="1" backspace="1"}{category_name},{/categories}</g:product_type>
<g:condition>New</g:condition>
<g:availability>{if total_stock > 0}in stock{if:else}out of stock{/if}</g:availability>
<g:price>{price}</g:price>
<g:image_link>{product_image}</g:image_link>
<g:additional_image_link>{product_image_2}</g:additional_image_link>
<!-- Required GTIN (Global Trade Item Number) -->
<g:gtin>3234567890126</g:gtin>
<!-- Required Brand -->
<g:brand>Acme</g:brand>
<!-- Required Tax -->
<g:tax>
<g:country>US</g:country>
<g:region>MO</g:region>
<g:rate>4.225</g:rate>
</g:tax>
<!-- Required Shipping -->
<g:shipping>
<g:country>US</g:country>
<g:region>MO</g:region>
<g:price>6.49 USD</g:price>
</g:shipping>
<!-- Required Google Product Category -->
<g:google_product_category>899</g:google_product_category>
</item>
{/exp:store:product}
{/exp:channel:entries}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment