Difference between revisions of "How to create an XML feed for getprice.com.au"

From Spiffy Stores Knowledge Base

Line 1: Line 1:
Getprice.com.au is Australia's leading comparison shopping destination. They reach more than 3 million genuine buyers every month. Getprice has joined forces with some of Australia's largest media networks, online and offline, which enables them to distribute your inventory to millions of Australians via one simple XML feed.
+
Getprice.com.au is Australia's leading comparison shopping destination. They reach more than 3 million genuine buyers every month. Getprice has joined forces with some of Australia's largest media networks, online and offline, which enables them to distribute your inventory to millions of Australians via one simple XML feed.  
  
 
All Getprice merchants need to supply Getprice with a data feed in a specific format, that includes all the relevant information on their product lines. If you supply Getprice with a dynamic (automatic) feed, they can scan this every 24 hours or so for product and price updates.  
 
All Getprice merchants need to supply Getprice with a data feed in a specific format, that includes all the relevant information on their product lines. If you supply Getprice with a dynamic (automatic) feed, they can scan this every 24 hours or so for product and price updates.  
  
For more information about the Getprice Merchant Program, visit the getprice site at http://www.getprice.com.au/join.htm
+
For more information about the Getprice Merchant Program, visit the getprice site at http://www.getprice.com.au/join.htm  
  
To create a feed for the getprice.com.au site, you'll need to do 2 things;
 
  
1.  Create a new collection that contains all of the products you want to include in your product feed
+
== Setting up your store to create the feed ==
  
2. Edit your Theme.liquid file in your store toolbox
+
To create a feed for the getprice.com.au site, you'll need to do 2 things;
  
=== STEP 1 ===
+
1. Create a new collection that contains all of the products you want to include in your product feed  
Create a collection in your Spiffy Toolbox called "getprice feed".  Make sure it called exactly that.  The collection you create can be either a standard collection, or a super collection...  it doesn't matter which.
 
  
 +
2. Edit your Theme.liquid file in your store toolbox
  
=== STEP 2 ===
+
=== STEP 1  ===
Paste the code below into your theme.liquid file so it's ABOVE THE FIRST LINE that appears in the editor;
+
 
<pre>
+
Create a collection in your Spiffy Toolbox called "getprice feed". Make sure it called exactly that. The collection you create can be either a standard collection, or a super collection... it doesn't matter which.
{% if collection.handle == 'getprice-feed' %}
+
 
<?xml version="1.0" encoding="ISO-8859-2" ?>
+
<br>
<STORE URL="{{shop.url}}" DATE="{{  'now' | date: '%x' }}" TIME="{{  'now' | date: '%X' }}" NAME="{{shop.name}}">
+
 
   <PRODUCTS>
+
=== STEP 2 ===
     {% for product in collection.products %}  
+
 
       <PRODUCT NUM="{{ product.id }}">
+
Paste the code below into your theme.liquid file so it's ABOVE THE FIRST LINE that appears in the editor;  
         <UPC>{{product.variants.first.sku}}</UPC>
+
<pre>{% if collection.handle == 'getprice-feed'&nbsp;%}
         <ATTRIBUTE1>{{product.title | escape}}</ATTRIBUTE1>
+
&lt;?xml version="1.0" encoding="ISO-8859-2"&nbsp;?&gt;
         <description>{{product.description | strip_html | escape | truncate: 1024}}</description>
+
&lt;STORE URL="{{shop.url}}" DATE="{{  'now' | date: '%x' }}" TIME="{{  'now' | date: '%X' }}" NAME="{{shop.name}}"&gt;
         <manufacturer>{{product.vendor | escape}}</manufacturer>
+
   &lt;PRODUCTS&gt;
         <category_name>{{product.type | escape}}</category_name>
+
     {% for product in collection.products&nbsp;%}  
         <AVAILABILITY>{% if product.available %}Y{% else %}N{% endif %}</AVAILABILITY>
+
       &lt;PRODUCT NUM="{{ product.id }}"&gt;
         <PRODUCT_URL>{{shop.url}}{{product.url}}</PRODUCT_URL>
+
         &lt;UPC&gt;{{product.variants.first.sku}}&lt;/UPC&gt;
         <IMAGE>{{product.featured_image | product_img_url: 'medium'}}</IMAGE>
+
         &lt;ATTRIBUTE1&gt;{{product.title | escape}}&lt;/ATTRIBUTE1&gt;
         <PRICE>{{product.price | money_without_currency}}</PRICE>
+
         &lt;description&gt;{{product.description | strip_html | escape | truncate: 1024}}&lt;/description&gt;
         <CURRENCY>{{ shop.currency }}</CURRENCY>
+
         &lt;manufacturer&gt;{{product.vendor | escape}}&lt;/manufacturer&gt;
       </PRODUCT>
+
         &lt;category_name&gt;{{product.type | escape}}&lt;/category_name&gt;
     {% endfor %}
+
         &lt;AVAILABILITY&gt;{% if product.available&nbsp;%}Y{% else&nbsp;%}N{% endif&nbsp;%}&lt;/AVAILABILITY&gt;
   </PRODUCTS>
+
         &lt;PRODUCT_URL&gt;{{shop.url}}{{product.url}}&lt;/PRODUCT_URL&gt;
</STORE>
+
         &lt;IMAGE&gt;{{product.featured_image | product_img_url: 'medium'}}&lt;/IMAGE&gt;
{% else %}
+
         &lt;PRICE&gt;{{product.price | money_without_currency}}&lt;/PRICE&gt;
</pre>
+
         &lt;CURRENCY&gt;{{ shop.currency }}&lt;/CURRENCY&gt;
Paste this so it's BELOW THE LAST line in your theme.liquid file
+
       &lt;/PRODUCT&gt;
<pre>
+
     {% endfor&nbsp;%}
{% endif %}
+
   &lt;/PRODUCTS&gt;
 +
&lt;/STORE&gt;
 +
{% else&nbsp;%}
 +
</pre>  
 +
Paste this so it's BELOW THE LAST line in your theme.liquid file  
 +
<pre>{% endif&nbsp;%}
 
</pre>
 
</pre>

Revision as of 09:06, 24 August 2010

Getprice.com.au is Australia's leading comparison shopping destination. They reach more than 3 million genuine buyers every month. Getprice has joined forces with some of Australia's largest media networks, online and offline, which enables them to distribute your inventory to millions of Australians via one simple XML feed.

All Getprice merchants need to supply Getprice with a data feed in a specific format, that includes all the relevant information on their product lines. If you supply Getprice with a dynamic (automatic) feed, they can scan this every 24 hours or so for product and price updates.

For more information about the Getprice Merchant Program, visit the getprice site at http://www.getprice.com.au/join.htm


Setting up your store to create the feed

To create a feed for the getprice.com.au site, you'll need to do 2 things;

1. Create a new collection that contains all of the products you want to include in your product feed

2. Edit your Theme.liquid file in your store toolbox

STEP 1

Create a collection in your Spiffy Toolbox called "getprice feed". Make sure it called exactly that. The collection you create can be either a standard collection, or a super collection... it doesn't matter which.


STEP 2

Paste the code below into your theme.liquid file so it's ABOVE THE FIRST LINE that appears in the editor;

{% if collection.handle == 'getprice-feed' %}
<?xml version="1.0" encoding="ISO-8859-2" ?>
<STORE URL="{{shop.url}}" DATE="{{  'now' | date: '%x' }}" TIME="{{  'now' | date: '%X' }}" NAME="{{shop.name}}">
  <PRODUCTS>
    {% for product in collection.products %} 
      <PRODUCT NUM="{{ product.id }}">
        <UPC>{{product.variants.first.sku}}</UPC>
        <ATTRIBUTE1>{{product.title | escape}}</ATTRIBUTE1>
        <description>{{product.description | strip_html | escape | truncate: 1024}}</description>
        <manufacturer>{{product.vendor | escape}}</manufacturer>
        <category_name>{{product.type | escape}}</category_name>
        <AVAILABILITY>{% if product.available %}Y{% else %}N{% endif %}</AVAILABILITY>
        <PRODUCT_URL>{{shop.url}}{{product.url}}</PRODUCT_URL>
        <IMAGE>{{product.featured_image | product_img_url: 'medium'}}</IMAGE>
        <PRICE>{{product.price | money_without_currency}}</PRICE>
        <CURRENCY>{{ shop.currency }}</CURRENCY>
      </PRODUCT>
    {% endfor %}
  </PRODUCTS>
</STORE>
{% else %}

Paste this so it's BELOW THE LAST line in your theme.liquid file

{% endif %}