Prostoshoper Posted December 1, 2013 Share Posted December 1, 2013 Имеем не много перекрученный модуль, но при изменении классической системы хранения картинок не хочет показывать изображения товара, код прилагаю. foreach ($result as &$row) { $row['link'] = $context->link->getProductLink($row['id_product'], $row['link_rewrite'], $row['category'], $row['ean13']); $row['id_image'] = Product::defineProductImage($row, $id_lang); if (sizeof($row['id_image']) > 0) { $image = new Image($row['id_image']); $row['image_url'] = _PS_BASE_URL_._THEME_PROD_DIR_.$row['id_image'].'-topseller.jpg'; } } $html = '<div><div class="top-label"></div><a href="'.$result[0]['link'].'"><h3>'.$result[0]['name'].'</h3></a><a href="'.$result[0]['link'].'"></a><a href="'.$result[0]['link'].'"><img src="'.$result[0]['image_url'].'"></a><a href="'.$result[0]['link'].'"><span>'.Tools::displayPrice($result[0]['price']).'</span></a></div>'; //<h5>'.$result[0]['category'].'</h5> return $html; 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