Skip to content

Instantly share code, notes, and snippets.

@rodrigorm
Created April 11, 2012 15:41
Show Gist options
  • Save rodrigorm/2360111 to your computer and use it in GitHub Desktop.
Save rodrigorm/2360111 to your computer and use it in GitHub Desktop.
Hintee XML Feed for Stores
<?xml version="1.0" encoding="utf-8"?>
<products>
<!--
Product Definition:
* name: required, product name as show in the page
* url: required, url used to buy the product
-->
<product name="T-shirt Name" url="http://example.com/product?id=999">
<!--
Image Definition:
* type: required, available options are `illustration` and `photo`
* illustration: required, an illustration is used as main image in the product
page if the illustration is not provided the product is invalidated.
* photo: optional, some photos of models using the product.
* url: required, url of the corresponding image file
-->
<image type="illustration" url="http://example.com/999_illustration.jpg" />
<image type="illustration" url="http://example.com/999_illustration2.jpg" />
<image type="photo" url="http://example.com/999_large.jpg" />
<image type="photo" url="http://example.com/999_small.jpg" />
<!--
Variation Definition:
A variation is a combination of size, type and gender used to determine stock availability
and price of a product.
The more variations you provide, the greater the chance of this product is suitable for users.
* gender: required, available option are `M` for male, `F` for female and `K` for kids
* size: required, size of the variation
* type: required, type of the variation
Note: The size and type can be supplied as is, no need to translate into English.
-->
<variation gender="M" size="S" type="Basic T-shirt" />
<variation gender="M" size="M" type="Basic T-shirt" />
<variation gender="M" size="L" type="Basic T-shirt" />
<variation gender="M" size="XL" type="Basic T-shirt" />
<variation gender="F" size="S" type="Basic T-shirt" />
<variation gender="F" size="M" type="Basic T-shirt" />
<variation gender="F" size="L" type="Basic T-shirt" />
<variation gender="F" size="L" type="Beat Neck T-shirt" />
<variation gender="F" size="2Y" type="Toddler" />
</product>
</products>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment