Processing orders on your server

This is the most advanced way of sending orders. The convenience is in the opportunity of implementing any order processing logics by the help of your own or third-party programmers.

Don't be afraid; we do offer a turn-key solution for processing orders, but demanding users may create whatever they want using their own resources.

If you have your own website (on any stage of completion), this is the method we recommend choosing.

To have order from your customer sent to your server, on the list of order submission methods, select the third item.
On the main menu, select Service-Options-Order submission settings

Order submission settings

Select this item and then click on the 'Settings' button.


The configuration comes down to setting paths to the script on your server and installing server software to it beforehand.

Installing server side

We offer a ready-to-use set of server software that you can use in the real business and as foundation for further development.
You must understand that you use it at your own risk.

Receiving and processing orders
Displaying orders
Compiling and generating customer list (uses e-mail as unique property)
Sending notification to supplier (you) and customer via email
Restricting access - View only / Edit

As the result, you will get this panel. Login and password: user
To test sending orders, you can enter in the path to order processor script and then look at the result in the panel.
(Uploading PRODUCTS to our test database is ignored by our script.)

To install on your server:
  • Sign in to your website control panel.
  • Create a new database (MySQL) and a user for it.
  • Download this archive.
  • Extract it to some folder.
    Upload via FTP the content of the folder to any web-accessible folder on your website (i.e. you must be able to access it via browser).
    In the address line of your browser, enter http://your_website/folder/install.php
  • Follow the wizard's instructions.
In the application settings, specify:
Path to order processor script - http://your_website/folder/process.php
Path to script in the bottom block - http://your_website/folder/process.php
Enter the administrator login and password that you have specified during the installation.
Upload your products for the first time (click the 'Upload' button). Do this only once in a while, when freshing up your stock.
You can send a test order and look at the result.
The control panel is available at http://your_website/folder/index.php
When signing in as administrator, you can view and edit data.
When signing in as user, you can only view data.

Technical details for developers

If you are not planning on adding anything on your own, skip this section.
Find a working data processing example with extensive comments in the offered scripts.
This provides just a bit of basic information.

Path to order processor script - full http:// path to the script that processes orders on your website
Path to script in the bottom block - full http:// path to the script on your website that receives and processes the full list of products from your catalog
This option is necessary for building a normalized database on your server and can be used at your own discretion. Each product item in submitted order data also contains full information on the product, and you can use it to dynamically fill in the product table, although this way is not the best in terms of performance.
Login and password - parameters that would be validated in your script prior to processing product list. Login and password do not affect the ORDER processing routine.
Process items at once - number of items to be submitted per request. You can use a lesser value. Use only when you have very large lists or slow server. Default value: 1 000 000.

Data when submitting both order and product list are sent using the POST method in the JSON format as value of the ?data parameter.
When submitting order, the program sends the &com=sendorder parameter.
When submitting order, the program also sends the lng parameter, which specifies current user interface language.
When submitting product list, the program also sends:
pagenum=N, where N - request number, if submitting multiple requests
uploadfinallpass=F, where F=1 if the request is final
login, password - your login and password

Server response
OK when script completes successfully. The order submission window displays a successful submission notification or closes automatically if the option "Close window" is selected (depends on client settings).
Example: echo 'OK';
The script generates a number of its own error messages; you can see the list of those in the file /moduls/lng/messages_xx.php The messages depend on user interface language.
For example, the notification that the script is unable to process an order again.

The information in this article, as well as the comments in the code of the scripts, are sufficient for creating an order processing system of any level.
If the amount of data sent to data parsers is insufficient for you, let us know, and we will add more data.