Integration with the warehouse https://www.annapol.com – 52 thousand products
Integration through an XML file allows you to create your own online store, with all product data from the Firma Handlowo Usługowa Annapol database on the following website https://www.annapol.com
The products are automatically imported into your store along with your fixed purchase prices (net).
The offer on your store will be automatically updated.
If you get permission to access the XML file, individual access to the file will be activated.
The file will be available after logging in the YOUR ACCOUNT bookmark http://www.annapol.com/account under the position of XML Price list.
FURTHER INFORMATION ABOUT USING THE XML FILE WITH THE DESCRIPTION OF THE FILES
The file is made available for a trial period of 1 mths. After this period, verification whether you have implemented integration with our warehouse will be carried out. If Yes, then access to the file remains active, but if there is no such integration with your store, access to the file will be disabled.
After enabling access to XML files in the Customer Panel in tab Your account three files are available:
https://www.annapol.com/xml-categories - Here are categories and subcategories, a complete category tree in three languages, but 50-60% of translations into English and German is missing.
Example: <categories>
<group> <category id="42" parent="0"> <name language="Polski" code="pl"> <![CDATA[ Motoryzacja ]]> </name> </category> <category id="42" parent="0"> <name language="German" code="de"> <![CDATA[ Auto & Motorrad ]]> </name> </category> <category id="42" parent="0"> <name language="English" code="en"> <![CDATA[ Automotive ]]>
https://www.annapol.com/xml-stock - Here are prices in PLN and EUR (to choose from), stock status, promotional prices, tax rate, product ID, model. Important Notice! on_request="0" <- The normal product and quantity associated with the warehouse with a visible price. on_request="1" <- The product is 99% available in stock but it is not integrated with it and in the XML file its quantity is 0 (stock = "0), although it is available (can be ordered) please, when you make the integration in "stock quantity" enter: "Ask for quantity" or decide for yourself how it should be solved.
Example: <product id="155497" symbol="AG663" on_request="0" stock="388" price_pln="2.65" price_eur="0.63" special_price_pln="2.38" special_price_eur="0.57" tax="23.0000"/>
<product id="155506" symbol="BLO014708" on_request="1" stock="0" price_pln="84.03" price_eur="20.05" tax="23.0000"/>
https://www.annapol.com/xml-products - Here you can find descriptions, main photos and all additional photos, additional product ID, model, price in EUR and PLN, tax rate, etc.
The above link / file is too big to be opened from the browser. You need to download it to the disk and run it from the editor - for example notepad ++
You can try it in the Mozilla browser in which we were able to open the file
Example: <products><group><product id="52" symbol="WS1010TW" price_pln="9.53" price_eur="2.27" tax="23.0000" stock="246"><name>WS1010TW Głośnik samochodowy 4"/2-drożny/100W</name><description><p><span style="font-size: small;"><span style="font-family: verdana,geneva;">Gonik sam.4"/2WAY/100W WS-1010TW</span></span></p><ul><li style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Woofer: 100 mm membrana celuloza lakierowana i zawieszeniu z pianka poliuretanowa</span></span></li><li style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Tweeter: 25 mm kopuka z magnesem neodymowym</span></span></li><li style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Moc maksymalna: 100 W</span></span></li><li style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Pasmo przenoszenia: 30 - 30 000 Hz</span></span></li><li style="font-family: verdana,geneva;"><span style="font-size: small;"><span style="font-family: verdana,geneva;">Impedancja: 4 ohm </span></span></li></ul><p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><br /></span></span></p></description><category><id>2029</id><name>100 mm</name></category><manufacturers_name>Dibeisi</manufacturers_name><images><gfx>https://www.annapol.com/images/WS1010TW ASWSQWQ.jpg</gfx><gfx>https://www.annapol.com/images/ws1010tw_444.jpg</gfx><gfx>https://www.annapol.com/images/ws1010tw_333.jpg</gfx></images><on_request status="0"/></product>|
Providing PHP Library for simple XML integration
To facilitate integration with our warehouse, a simple PHP Library has been made available that allows you to open and integrate an XML file, this applies only to file xml-products (i.e. https://www.annapol.com/xml-products.php?user......).
The library can be downloaded immediately after logging in by going to:
a) Section Your account: https://www.annapol.com/account.php?language=en b) Or by downloading the library directly from the address: https://www.annapol.com/xml-example-library/annapol.xml.class.example.zip
The library contains the main file: products-xml.class.php and an example of use, file example.php and also file readme.txt where additional technical details are included.
File example.php contains a simple configuration in lines 7 to 13: $config = [
// Expiries downloaded xml file
'expiries' => 60*60,
// URL xml file
'url' => 'https://www.annapol.com/xml-products.php?user=EMAIL_ADDRESS&hash=YOUR_HASH'
];
Variable: expiries contains the validity time of the XML file (60*60 means 1 hour)
Variable: url contains the address of the XML file given in tab Your account (after logging in);
The rest of the code shows the library implementation, in the following order:
1) Invoking library
2) Downloading the XML file if it is missing or expired.
3) Getting an table of products in an XML file in the form of ARRAY
4) Printing the first record from the ARRAY table on the screen. The library DEMO looks like this: https://www.annapol.com/xml-example-library/demo/ Demo is an example of use.
In addition, it allows you to check whether the XML file is correctly generated and shows 1 record from it. Here, after pasting our XML https://www.annapol.com/xml-products.php?user............ and pressing SEND will display the quantity of available products.
Every programmer will know how to use it.
In addition, we would like to inform you that the current xml-products file (https://www.annapol.com/xml-products.php?user ......) has been improved and there should be no problems with opening it.
We recommend using the browser Firefox – Mozilla which is best for opening and saving XML files. However, it is best to use the mentioned PHP Library.
Any questions regarding the integration should be directed to integracje@annapol.pl
|