cikon95 Posted July 16, 2011 Share Posted July 16, 2011 problem:ked pouzijem feed ktory tu uz bol pouzity xxx krat vsetko poriatku nacita ale obrazok cestu nacitahttp://www.domena.xx/img/p/521-634.jpg lenze ten obrazok sa tam nenachadza ale je v inom adresari a to:http://www.domena.xx/img/p/6/3/4/634.jpgMa niekto Feed subor ktory ide pod 1.4.3 ?alebo nejaku radu? <?php $shopUrl = 'www.domena.xx'; include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); error_reporting(0); $p=Product::getProducts(6, 0, 0, 'id_product', 'desc', false); $products=Product::getProductsProperties(6, $p); header("Content-Type: text/xml"); echo '<?xml version="1.0" encoding="utf-8"?> '; foreach ($products as $row) { $kategorie=array(); $category = new Category(intval($row['id_category_default']), intval(6)); while ($category->id <> 1) { $kategorie[]=$category->hideCategoryPosition($category->name); $category = new Category(intval($category->id_parent), intval(6)); } $img=Product::getCover($row['id_product']); echo ' '.$row['id_product'].' '.str_replace("&", "and", strip_tags($row['name'])).' '.str_replace("&", "&",strip_tags($row['description_short'])).' '.($row['price']*1).' '.htmlspecialchars($row['manufacturer_name']).' '.implode(' > ',array_reverse($kategorie)).' '.$row['link'].' http://www.domena.xx/img/p/'.$row['id_product'].'-'.$img['id_image'].'.jpg '; } echo ''; ?> Link to comment Share on other sites More sharing options...
cikon95 Posted July 18, 2011 Author Share Posted July 18, 2011 modul funkcny pod 1.3.4 sa da kupit http://www.prestashop.com/forums/viewthread/74433Mozem potvrdit ze modul ide pod 1.3.4 Link to comment Share on other sites More sharing options...
peter_m Posted July 19, 2011 Share Posted July 19, 2011 aj pod 1.4.3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now