Page 1 of 2
how to generate rss feed for yandex
Posted: 25 Apr 2022, 20:58
by vodka
please tell me how to generate rss feed for yandex using heureka pugin.
Yandex refuses to accept: Incorrect YML root element specified
Re: how to generate rss feed for yandex
Posted: 26 Apr 2022, 17:00
by Jan
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
Re: how to generate rss feed for yandex
Posted: 26 Apr 2022, 19:19
by vodka
tell me the path to the template file that defines the rss structure
Re: how to generate rss feed for yandex
Posted: 27 Apr 2022, 13:59
by Jan
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
Re: how to generate rss feed for yandex
Posted: 27 Apr 2022, 19:02
by vodka
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?
Re: how to generate rss feed for yandex
Posted: 27 Apr 2022, 19:56
by vodka
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?
Re: how to generate rss feed for yandex
Posted: 28 Apr 2022, 13:11
by Jan
As the PHP parser says, you have syntax error near the $v. It looks like you are missing ".".
Jan
Re: how to generate rss feed for yandex
Posted: 28 Apr 2022, 17:38
by vodka
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?
Re: how to generate rss feed for yandex
Posted: 29 Apr 2022, 23:20
by Jan
Did you set the right header and footer?
Jan
Re: how to generate rss feed for yandex
Posted: 29 Apr 2022, 23:33
by vodka
before the feed template changes, it worked without errors