please tell me how to generate rss feed for yandex using heureka pugin.
Yandex refuses to accept: Incorrect YML root element specified
how to generate rss feed for yandex
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to generate rss feed for yandex
Hi, unfortunately I don't have any experiences with Yandex RSS but I think, it should be similar like for all other RSS feeds. You should see some example of Yandex RSS feed and try to build the same way.
Jan
Jan
If you find Phoca extensions useful, please support the project
- vodka
- Phoca Enthusiast
- Posts: 53
- Joined: 06 Apr 2022, 21:57
Re: how to generate rss feed for yandex
tell me the path to the template file that defines the rss structure
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to generate rss feed for yandex
The structure can be defined in parameters. Didn't you read the guide for making feed? You can assign there header, footer, etc. so if the output should be standard XML, setting in in options is the simplest way.
The path to the file is:
components/com_phocacart/views/feed/tmpl/default.php
Jan
The path to the file is:
components/com_phocacart/views/feed/tmpl/default.php
Jan
If you find Phoca extensions useful, please support the project
- vodka
- Phoca Enthusiast
- Posts: 53
- Joined: 06 Apr 2022, 21:57
Re: how to generate rss feed for yandex
thank
header, footer, name,url - ok, but everything else is different:
<offers>
<offer id="2716933893" available="true">
<url>https://....</url>
<price>...</price>
<currencyId>RUB</currencyId>
<categoryId>2731707003</categoryId>
<picture>https://...u.jpg</picture>
<name>...</name>
<description>...</description>
<param name="Color">yellow</param>
</offer>
...
</offers>
or how can it be done without editing the template so that the ID is written inside the opening tag?
header, footer, name,url - ok, but everything else is different:
<offers>
<offer id="2716933893" available="true">
<url>https://....</url>
<price>...</price>
<currencyId>RUB</currencyId>
<categoryId>2731707003</categoryId>
<picture>https://...u.jpg</picture>
<name>...</name>
<description>...</description>
<param name="Color">yellow</param>
</offer>
...
</offers>
or how can it be done without editing the template so that the ID is written inside the opening tag?
- vodka
- Phoca Enthusiast
- Posts: 53
- Joined: 06 Apr 2022, 21:57
Re: how to generate rss feed for yandex
70| $oI['item_id'] = $l.$this->p['item_id']$v->id.$r.$e.$this->p['item_id'].$r;
-syntax error, unexpected '$v' (( what am I doing wrong,how right?
-syntax error, unexpected '$v' (( what am I doing wrong,how right?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to generate rss feed for yandex
As the PHP parser says, you have syntax error near the $v. It looks like you are missing ".".
Jan
Jan
If you find Phoca extensions useful, please support the project
- vodka
- Phoca Enthusiast
- Posts: 53
- Joined: 06 Apr 2022, 21:57
Re: how to generate rss feed for yandex
yes, missed the point...
now throws an error:
Opening and ending tag mismatch: offer_ID1 line 4 and offer_ID
and my opening tag should not match the closing tag, what should I do?
now throws an error:
Opening and ending tag mismatch: offer_ID1 line 4 and offer_ID
and my opening tag should not match the closing tag, what should I do?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to generate rss feed for yandex
Did you set the right header and footer?
Jan
Jan
If you find Phoca extensions useful, please support the project
- vodka
- Phoca Enthusiast
- Posts: 53
- Joined: 06 Apr 2022, 21:57
Re: how to generate rss feed for yandex
before the feed template changes, it worked without errors