Page 1 of 1

Export file xml Template

Posted: 06 Mar 2017, 02:10
by 27bit.ru
Hey. Is it possible to change the template of the exported file. Add any data, or delete any fields. Is it possible to do this using settings, or by changing the file?

Re: Export file xml Template

Posted: 06 Mar 2017, 15:35
by aimeos
You can copy and modify this template in your own extension:
https://github.com/aimeos/ai-controller ... efault.xml

Re: Export file xml Template

Posted: 07 Mar 2017, 14:54
by 27bit.ru
aimeos wrote:You can copy and modify this template in your own extension:
https://github.com/aimeos/ai-controller ... efault.xml
Thank you. Everything worked out. I just do not understand how I can display a link to the product page, and the catalog id, as well as the label of the catalog. Is it possible to add them to the export xml file?

Re: Export file xml Template

Posted: 08 Mar 2017, 10:26
by aimeos
For links, you can use the "$this->url()" view helper like there:
https://github.com/aimeos/ai-controller ... lt.xml#L22

The catalog data isn't available by default. You have to create your own class extend from the "Standard" class and overwrite the export() method:
https://github.com/aimeos/ai-controller ... d.php#L273