Export file xml Template

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
27bit.ru
Posts: 36
Joined: 15 Jan 2017, 05:36

Export file xml Template

Post by 27bit.ru » 06 Mar 2017, 02:10

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?
Last edited by 27bit.ru on 06 Mar 2017, 15:55, edited 1 time in total.

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Export file xml Template

Post by aimeos » 06 Mar 2017, 15:35

You can copy and modify this template in your own extension:
https://github.com/aimeos/ai-controller ... efault.xml
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

27bit.ru
Posts: 36
Joined: 15 Jan 2017, 05:36

Re: Export file xml Template

Post by 27bit.ru » 07 Mar 2017, 14:54

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?

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Export file xml Template

Post by aimeos » 08 Mar 2017, 10:26

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply