-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmerchant.xml
More file actions
38 lines (37 loc) · 1.55 KB
/
merchant.xml
File metadata and controls
38 lines (37 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
<title>Products for Google Merchant</title>
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<author>
<name>{{ site.author }}</name>
</author>
<id>google,{{ site.title | slugify }}</id>
{%- for program in site.programs -%}
{%- if program.gum-id or program.paypal-id %}
<entry>
<title>{{ program.title | xml_escape }}</title>
<id>{{ program.gum-id | default: paypal-id }}</id>
<link href="{{ program.url | absolute_url }}" />
<summary>{{ program.sidetxt | xml_escape }}</summary>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<g:image_link>{{ program.image | absolute_url }}</g:image_link>
<g:price>{{ program.price }} USD</g:price>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:brand>{{ site.author }}</g:brand>
{%- if program.is_bundle -%}<g:is_bundle>yes</g:is_bundle>{%- endif -%}
{%- if program.isbn -%}
<g:gtin>{{ program.isbn }}</g:gtin>
<g:identifier_exists>true</g:identifier_exists>
{%- elsif program.upc -%}
<g:gtin>{{ program.upc }}</g:gtin>
<g:identifier_exists>true</g:identifier_exists>
{%- endif -%}
<g:mpn>{{ program.mpn | default: program.gum-id | default: paypal-id }}</g:mpn>
</entry>
{%- endif -%}
{%- endfor -%}
</feed>