Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact
English   menu-arrow-gray-horizontal.gif
Home > About the Product > Protection of the projects under Visual PHP™
Related information
Search


Video demonstration
Drag&drop in the Visual PHP™ Environment

Latest video samples:
Job Search
Company
E-VISION International s.r.o.

is looking for PHP 5 and JavaScript programmers for long-term cooperation.




More information ...
Wrote about Visual PHP™
News by e-mail
Your e-mail

Visual PHP Recommends
For Visual PHP™
(for work in both the developer and the administration interface), we recommend using the Mozilla Firefox web browser, on the basis of which the whole software is developed because of stability, complying with the W3C standards and protecting elements of the browser.

Automatic Export of an XML for Product Search Engines

From the marketing point of view, it is almost necessary to register e-shops in product search engines / comparators today. At the present time, a great number of such servers is available and here we will show you how to prepare an XML feed for such servers.

Implementing a Code for XML File Generation

All of such product search engines download periodically an XML file from your server. Fortunately, the format of this XML file is almost the same for all of these search engines (some search engines use all items, some only some of them). The format of this file can be found, for example, at this URL address: http://help.seznam.cz/cz/specifikace-xml.html.

To have the resulting XML file updated all the time, it is necessary to generate this XML file each time when any change of a record in the m_shop_catalogue table occurs. That is why it is necessary to insert a code into the onChange event of the m_shop_catalogue table. Therefore, go to the Presentation -> Tables menu, open the m_shop_catalogue table for editing and insert the following code into the onChange event:
// An empty file with write access 777 will be created _file_put_contents(MAINPATH."zbozi-seznam.xml", "");

$file = fopen(MAINPATH."zbozi-seznam.xml", "w");
fwrite($file, '<?xml version="1.0" encoding="utf-8"?>');
fwrite($file, '<SHOP>');

// the getContentRecords function loads records in a similar way as getRecords() does, with the difference that it applies initial filters (records that are in the archive are not loaded)
$records = getTable("m_shop_catalogue")->getContentRecords();
foreach($records as $record)
{           
        fwrite($file, '<SHOPITEM>');
        fwrite($file, '<PRODUCT>'.htmlspecialchars($record["name"]).'</PRODUCT>');
        fwrite($file, '<DESCRIPTION>'.htmlspecialchars(_substr(strip_tags($record["description"]),0,500)).'...</DESCRIPTION>');
        fwrite($file, '<URL>'.htmlspecialchars(toSEOUrl('m_shop_catalogue.php?id='.$record["id"])).'</URL>');
        fwrite($file, '<IMGURL>'.htmlspecialchars(getTable("m_shop_catalogue")->getComponent("image")->getUrl($record)).'</IMGURL>');
        fwrite($file, '<VAT>'.$record["tax"].'</VAT>');
        fwrite($file, '<PRICE_VAT>'.$record["taxPrice"].'</PRICE_VAT>');
        fwrite($file, '<AVAILABILITY>0</AVAILABILITY>');
        fwrite($file, '</SHOPITEM>');
}

fwrite($file, '</SHOP>');
fclose($file);
If an administrator enters a new record, edits any existing one or deletes any record (in all cases the onChange event is called), the aforementioned code will be run that will generate an XML file again. The resulting XML file can be found at this URL address: http://www.domena.cz/zbozi-seznam.xml.

Registering Your E-shop in Product Search Engines

Some servers check themselves the content of this file just on registration; therefore, we have to create this XML file. As the onChange event calls only when the m_shop_catalogue table content changes, it is necessary to open and save at least 1 record in this table in administration to run this code in order to generate this XML file for the first time (this file will not be created by mere entering the code into the event of this table; it is necessary to run this code just by editing any record).

Some product search engines are free of charge, some require placing a backlink or banner on the pages, and others are to be paid fully. At the present time, there are the following product search engines (sorted by importance):

Server Name
URL
URL for Adding a Shop
PageRank / 10
SRank / 100
Zboží.cz (Goods.cz) (from seznam.cz) www.zbozi.cz Add a Shop 8 100
Heuréka (Eureka) www.heureka.cz Add a Shop 6 100
Srovnáme (We Will Compare) www.srovname.cz Add a Shop 3 80
Seznam zboží (List of Products) (from heureka.cz) www.seznamzbozi.cz Add a Shop 4 80
Hledej ceny (Find Prices) www.hledejceny.cz Add a Shop 4 90
Srovnání cen (Price Comparison) www.srovnanicen.cz Add a Shop 3 90
Nejlepší ceny (The Best Prices) www.nejlepsiceny.cz Add a Shop 3 90
Akční cena (Action Price) www.akcni-cena.cz Add a Shop 3 70
Zboží Centrum (Products Centrum) (from heureka.cz) zbozi.centrum.cz Add a Shop 5 80
Náákup (Purchase) www.naakup.cz Add a Shop - 80
Jyxo zbozi.jyxo.cz Add a Shop 6 80
Ceny zboží (Product Prices) www.cenyzbozi.cz Add a Shop 3 90
Hledám zboží (Searching for Products) www.hledam-zbozi.cz Add a Shop - -
Nej nákup (The Best Purchase) www.nejnakup.cz Add a Shop 4 80
Elektrus www.elektrus.cz Add a Shop 3 70
Lepší ceny (Better Prices) www.lepsiceny.cz Add a Shop 4 -
Zalevno (Cheaply) www.zalevno.cz Add a Shop 3 80
Koupíš (You Will Buy) www.koupis.cz Add a Shop 4 80
Najdi slevu (Find a Discount) www.najdislevu.cz Add a Shop 4 80
Bezva ceny (Perfect Prices) www.bezvaceny.cz Add a Shop 3 -
Mojse www.mojse.cz Add a Shop 3 60
Internet obchody (Internet Shops) www.internet-obchody.cz Add a Shop 3 80
Nízké ceny (Low Prices) www.nizkeceny.cz Add a Shop - 80
Shopy (Shops) www.shopy.cz
Add a Shop 3 80
Obchody (Shops) (from atlas.cz) obchody.atlas.cz Add a Shop 4 60
Začátek (Beginning) zbozi.zacatek.cz Add a Shop 3 80
Kde nejlevněji (Where Are the Lowest Prices?) www.kdenejlevneji.cz Add a Shop 2 60

If you decide to register in all of the aforementioned product search engines, please plan work for roughly 2 hours.








NOTICE

Some properties published in this article can only be functional with the latest core version. If you have any older core version, we recommend you to update to the latest version.

Login
Free trial

for 30 days
Latest core version
Single Developer 1.7.9.680
january 20, 2012

Professional 1.7.9.680
january 20, 2012

Enterprise 1.7.9.680
january 20, 2012


Latest developer guide
Developer Guide 1.0.5
july 10, 2009 9:36:42 AM

Latest user guide
Administrator Guide 1.0.24
august 27, 2010 11:58:08 AM

Latest install script
install.php 1.9.22
april 12, 2012 6:02:40 PM

Comming up in next version
more ...

rss.gif
Support

Fotogalerie 5/10/2012
Section: Tvorba prezentací
Chyba v hromadné korespondenci, nelze odeslat příloha (nová verze 4/6/2012
Section: Bug reporty
AntiSpam obrázek 4/6/2012
Section: Programování
Chyba při opravách textů 4/4/2012
Section: Bug reporty
Admin může smazat Developera, je to ok? 3/27/2012
Section: Bug reporty
Mapa webu 3/19/2012
Section: Tvorba prezentací


rss.gif
News

Weather Component Update
november 18, 2011
Server weather.com decided to stop providing weather information for free and passed to the paid version (about $ 60 per month). For this reason, we were forced to modify the Weather component to pulling weather information from another data source, namely from the server www.worldweatheronline.com . This site also provides information about weather all around the world, but the amount of information is smaller than the original source.

For proper functionality of the Weather component please update core to version 1.7.9.638.
Added new tutorials
october 4, 2011
He added new instructions Using another HTML editor
Powered by Visual PHP ™
© 2008 - 2010 E-VISION International, s.r.o.
Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact