how to generate rss feed for yandex

Phoca Cart - complex e-commerce extension
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

how to generate rss feed for yandex

Post by vodka »

please tell me how to generate rss feed for yandex using heureka pugin.
Yandex refuses to accept: Incorrect YML root element specified :x
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to generate rss feed for yandex

Post 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. :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how to generate rss feed for yandex

Post by vodka »

tell me the path to the template file that defines the rss structure
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to generate rss feed for yandex

Post 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
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how to generate rss feed for yandex

Post 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?
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how to generate rss feed for yandex

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to generate rss feed for yandex

Post by Jan »

As the PHP parser says, you have syntax error near the $v. It looks like you are missing ".".

Jan
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how to generate rss feed for yandex

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to generate rss feed for yandex

Post by Jan »

Did you set the right header and footer?

Jan
If you find Phoca extensions useful, please support the project
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: how to generate rss feed for yandex

Post by vodka »

before the feed template changes, it worked without errors
Post Reply