Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created November 2, 2011 20:04
Show Gist options
  • Save rsanchez/1334725 to your computer and use it in GitHub Desktop.
Save rsanchez/1334725 to your computer and use it in GitHub Desktop.

Revisions

  1. rsanchez created this gist Nov 2, 2011.
    23 changes: 23 additions & 0 deletions gistfile1.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <?xml version="1.0" encoding="UTF-8" ?>
    <rss version="2.0"
    xmlns:g="http://base.google.com/ns/1.0">
    <channel>
    <title>{site_name} Products</title>
    <link>{site_url}</link>
    <description>[insert store description here]</description>
    {exp:channel:entries channel="products" rdf="off" dynamic_start="on" limit="1000" disable="member_data|trackbacks"}
    <item>
    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
    <link>{title_permalink=products/detail}</link>
    <description>{exp:xml_encode}{product_description}{/exp:xml_encode}</description>
    <g:image_link>{product_images limit="1"}{site_url}{product_image}{/product_images}</g:image_link>
    <g:price>{product_price}</g:price>
    <g:condition>new</g:condition>
    <g:id>{product_vw}</g:id>
    <g:brand>{exp:xml_encode}{product_brand}{/exp:xml_encode}</g:brand>
    <g:gtin>{product_upc}</g:gtin>
    <g:product_type>{categories limit="1" parent_only="yes"}{exp:xml_encode}{category_name}{/exp:xml_encode}{/categories}</g:product_type>
    </item>
    {/exp:channel:entries}
    </channel>
    </rss>