Jump to content

XML feed do vyhladavačov


Recommended Posts



vedel by mi prosim Vas niekto poradit preco v novom PS 1.5.2 nefunguje moj xml feed php ? :



$shopUrl = 'http://www.your shop'; // adresa shopu včetně http://

include(dirname(__FILE__).'/config/config.inc.php'); // cesta ke config souboru



$p=Product::getProducts(5, 0, 0, 'id_product', 'desc', false); // sk je v databázi zapsaná pod číslem 5

$products=Product::getProductsProperties(5, $p); // sk je v databázi zapsaná pod číslem 5


header("Content-Type: text/xml");

echo '<?xml version="1.0" encoding="utf-8"?>


foreach ($products as $row) {


echo '



<ARTIKEL>'.str_replace("&", "&", $row['name']).'</ARTIKEL>


<HERSTELLER>'.str_replace("&", "&", $row['manufacturer_name']).'</HERSTELLER>

<BESCHREIBUNG>'.str_replace("&", "&",strip_tags($row['description'])).'</BESCHREIBUNG>





<EAN>'. round($row['ean13']) .'</EAN>




echo '</SHOP>';




V starom shope PS 1:3.7 funguje bez problemov.


Pripadne vedel by niekto poradit novy php subor na vygenerovanie xml feedu v PS 1.5.2 ?


Dakujem za Vasu pomoc.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More