-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
76 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% load se_extras %} | ||
|
||
<?xml version="1.0"?> | ||
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> | ||
<channel> | ||
{% comment %} | ||
@todo #1004:30m Avoid hardcoded values in RSS template. | ||
Take values like site's title and description from DB. | ||
{% endcomment %} | ||
<title>Интернет магазин Элементов питания с доставкой по России</title> | ||
<link>{{ base_url }}</link> | ||
<description>Элементы питания в СПб с доставкой по России - интернет магазин элементов питания ShopElectro</description> | ||
{% for product in products %} | ||
<item> | ||
<title>{{ product.name }}</title> | ||
<link>{{ product.utm_url }}</link> | ||
<description>{{ product.page.display.description }}</description> | ||
<g:id>{{ product.vendor_code }}</g:id> | ||
<g:condition>new</g:condition> | ||
<g:price>{{ product.price }}</g:price> | ||
<g:availability>{{ product.in_stock|yesno:'true,false' }}</g:availability> | ||
<g:image_link>http://images.example.com/TV_123456.png</g:image_link> | ||
<g:brand>{{ product.brand.name }}</g:brand> | ||
<g:product_type>{{ product.crumbs }}</g:product_type> | ||
|
||
{% comment %} | ||
@todo #1004:30m Implement specific to GM set of RSS labels. | ||
See the main set of them below. | ||
And take to account values from ahead code: | ||
"g:condition" and "g:availability". | ||
{% endcomment %} | ||
<g:google_product_category>Электроника &gt; Телевизоры &gt; Жидкокристаллические панели и LCD | ||
</g:google_product_category> | ||
<g:mpn>LCC3525G</g:mpn> | ||
<g:custom_label_0>high_margin</g:custom_label_0> | ||
<g:custom_label_1>Msk</g:custom_label_1> | ||
</item> | ||
{% endfor %} | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters