Authorization


Registration   Forgot password?

Extracts in XML

For the persons interested there is also a possibility to take different extracts with the objects they are interested in in XML format.
In order to receive the necessary extract as XML you should request one of the below enumerated files with defined parameters submitting them to url line (that is as GET-query):

http://shopxml.com/EXPORT/filename.php?shop=shopID¶meter1=value1¶meter2=value2&...
Attention 1: The shop=shopID parameter where shopID - unique identifier of your specific shop, should be always present in the query to any file. Remember this as below in certain files' description it won't be mentioned.
Attention 2: Don't forget to url-code query parameters' names and values. For that for example in PHP the urlencode() function is used.
When studying the possible file parameters note that some parameter names contain square brackets at the end (parameter[]). This means that you can enumerate them many times in order to reflect multiple values of this parameter if required. For example:
parameter[]=value1¶meter[]=value2&...¶meter[]=valueN
However don't forget that it is necessary to url-code the parameter name together with the square brackets which url-coded look like %5B%5D, that is the query will really llok like this:
parameter%5B%5D=value1¶meter%5B%5D=value2&...¶meter%5B%5D=valueN

All files for data export in XML are here:
http://shopxml.com/EXPORT/
There are such files with the following possible parameters:

1. xml.php - complete data extract.
External XML-tags <shop></shop>
Possible parameters:
no_manufacturers - submit 1 if you want to exclude manufacturers from the extract
no_products - submit 1 if you want to exclude the products from the extract

2. xml_manufacturers.php - extract of manufacturers.
Extenal XML-tags<manufacturers></manufacturers>
Possible parameters:
ID[] - unique identifiers of manufacturers the data on which you want to receive. If not specified all data will be shown.
exc_field[] - fields that should be excluded from the extract. The following fields could be possibly excluded:
name
description
image

3. xml_categories.php - categories' extract.
External XML-tags <categories></categories>
Possible parameters:
ID - unique identifier of the category the data on which you want to receive.
If not specified or equals 0 then all categories of upper level will be shown excluding those that are switched off in the control panel.
no_products - submit 1 if you want to exclude products from the extract
no_subcats - submit 1 if you want to receive only the required category without any subcategories
On default the complete subtree for the given category will be built.
exc_field[] - fields that should be excluded from the extract. The following fields could be possibly excluded:
name
title
comment
description
image
meta_title
meta_keywords
meta_description

4. xml_products.php - products extract.
External XML-tags <products></products>
Possible parameters:
ID[] - unique identifiers of products the data on which you want to receive. If not specified all data will be shown.
category - unique category identifier the products from which you want to receive.
Category identifier Category will be used only if the specific product IDs are not mentioned. If one or more product IDs are specified then they will be ignored. If you specify neither product identifiers nor the category identifier then no products will be shown in the results.
exc_field[] - fields that should be excluded from the extract. The following fields could be possibly excluded:
name
comment
description
model
upc_code
ean_code
measure
dimensions
image1 - image6
document1 - document3
meta_title
meta_keywords
meta_description
attributes

Attention: The default coding for XML is windows-1251. If your parser doesn't understand this coding and requires UTF-8 without fail then you can among other parameters specify the GET_UTF8=1 parameter in a query to any of the scripts. Then you'll receive XML in the UTF-8 coding.

Contact Us Legal and Policies Sitemap
© XMLShop.com 2004 – 2018