Export products to XML
12 years 11 months ago #128524
by DuFFi_SK
Export products to XML was created by DuFFi_SK
Hi, I would like to use the price and product aggregator site in our country. One of the conditions is to have an export with all product details in XML file. The XML structure has to be like this:
<?xml version="1.0" encoding="utf-8"?>
<SHOP>
<SHOPITEM>
<ITEM_ID>AB123</ITEM_ID>
<PRODUCTNAME>Nokia 5800 XpressMusic</PRODUCTNAME>
<PRODUCT>Nokia 5800 XpressMusic + púzdro zdarma</PRODUCT>
<DESCRIPTION>Klasický s plným dotykovým užívateľským rozhraním</DESCRIPTION>
<URL> obchod.sk/mobily/nokia-5800-xpressmusic
<IMGURL> obchod.sk/mobily/nokia-5800-xpressmusic/obrazok.jpg
<IMGURL_ALTERNATIVE> obchod.sk/mobily/nokia-5800-xpressmusic/obrazok2.jpg
<VIDEO_URL> www.youtube.com/watch?v=KjR759oWF7w
<PRICE_VAT>240</PRICE_VAT>
<HEUREKA_CPC>0,24</HEUREKA_CPC>
<MANUFACTURER>NOKIA</MANUFACTURER>
<CATEGORYTEXT>Elektronika | Mobilné telefóny</CATEGORYTEXT>
<EAN>6417182041488</EAN>
<PRODUCTNO>RM-559394</PRODUCTNO>
<PARAM>
<PARAM_NAME>Farba</PARAM_NAME>
<VAL>čierna</VAL>
</PARAM>
<DELIVERY_DATE>2</DELIVERY_DATE>
<DELIVERY>
<DELIVERY_ID>SLOVENSKA_POSTA</DELIVERY_ID>
<DELIVERY_PRICE>5</DELIVERY_PRICE>
<DELIVERY_PRICE_COD>120</DELIVERY_PRICE_COD>
</DELIVERY>
<DELIVERY>
<DELIVERY_ID>PPL</DELIVERY_ID>
<DELIVERY_PRICE>90</DELIVERY_PRICE>
<DELIVERY_PRICE_COD>120</DELIVERY_PRICE_COD>
</DELIVERY>
<ITEMGROUP_ID>EF789</ITEMGROUP_ID>
<ACCESSORY>CD456</ACCESSORY>
</SHOPITEM>
<SHOPITEM>
...
</SHOPITEM>
</SHOP>
Is it possible to create XML (or CSV) export with these product informations?
Thanks for your answer.
Filip
<?xml version="1.0" encoding="utf-8"?>
<SHOP>
<SHOPITEM>
<ITEM_ID>AB123</ITEM_ID>
<PRODUCTNAME>Nokia 5800 XpressMusic</PRODUCTNAME>
<PRODUCT>Nokia 5800 XpressMusic + púzdro zdarma</PRODUCT>
<DESCRIPTION>Klasický s plným dotykovým užívateľským rozhraním</DESCRIPTION>
<URL> obchod.sk/mobily/nokia-5800-xpressmusic
<IMGURL> obchod.sk/mobily/nokia-5800-xpressmusic/obrazok.jpg
<IMGURL_ALTERNATIVE> obchod.sk/mobily/nokia-5800-xpressmusic/obrazok2.jpg
<VIDEO_URL> www.youtube.com/watch?v=KjR759oWF7w
<PRICE_VAT>240</PRICE_VAT>
<HEUREKA_CPC>0,24</HEUREKA_CPC>
<MANUFACTURER>NOKIA</MANUFACTURER>
<CATEGORYTEXT>Elektronika | Mobilné telefóny</CATEGORYTEXT>
<EAN>6417182041488</EAN>
<PRODUCTNO>RM-559394</PRODUCTNO>
<PARAM>
<PARAM_NAME>Farba</PARAM_NAME>
<VAL>čierna</VAL>
</PARAM>
<DELIVERY_DATE>2</DELIVERY_DATE>
<DELIVERY>
<DELIVERY_ID>SLOVENSKA_POSTA</DELIVERY_ID>
<DELIVERY_PRICE>5</DELIVERY_PRICE>
<DELIVERY_PRICE_COD>120</DELIVERY_PRICE_COD>
</DELIVERY>
<DELIVERY>
<DELIVERY_ID>PPL</DELIVERY_ID>
<DELIVERY_PRICE>90</DELIVERY_PRICE>
<DELIVERY_PRICE_COD>120</DELIVERY_PRICE_COD>
</DELIVERY>
<ITEMGROUP_ID>EF789</ITEMGROUP_ID>
<ACCESSORY>CD456</ACCESSORY>
</SHOPITEM>
<SHOPITEM>
...
</SHOPITEM>
</SHOP>
Is it possible to create XML (or CSV) export with these product informations?
Thanks for your answer.
Filip
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 11 months ago #128536
by Mohamed Thelji
Replied by Mohamed Thelji on topic Export products to XML
Hi,
In order to export products in XML and change the structure of the exported file, you will have to change the code of the file "export" of the view "product" for your back end template via the menu Display->Views.
In order to export products in XML and change the structure of the exported file, you will have to change the code of the file "export" of the view "product" for your back end template via the menu Display->Views.
Please Log in or Create an account to join the conversation.
12 years 11 months ago #128538
by DuFFi_SK
Replied by DuFFi_SK on topic Export products to XML
Hi,
thanks for answer. If I change the mentioned code, where is the option to run the export itself?
thanks for answer. If I change the mentioned code, where is the option to run the export itself?
Please Log in or Create an account to join the conversation.
12 years 11 months ago #128629
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Export products to XML
Hi,
In the product listing in the backend, you have an "export" button.
Regards,
In the product listing in the backend, you have an "export" button.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds