julianweb Posted May 2, 2016 Share Posted May 2, 2016 A ver si alguien me puede ayudar, he intentado exportar los fabricantes con las imágenes (ya que tengo muchos fabricantes) y no doy con la tecla. Mediante una consulta SQL he podido exportar los fabricantes, pero no me salen las URLs de las imágenes. A ver si alguien me puede ayudar. Gracias. Link to comment Share on other sites More sharing options...
Enrique Gómez Posted May 2, 2016 Share Posted May 2, 2016 Si te sirve las imagenes las encuentras en la carpeta de instalación\img\m con el identificador seguido de .jpg. De esta forma es fácil en la select crear vía el id de fabricante la url Link to comment Share on other sites More sharing options...
ventura Posted May 2, 2016 Share Posted May 2, 2016 Prueba con algo asi revisando los prefijos de las tablas que tengas en tu base de datos SELECT m.`id_manufacturer` AS id, m.`name` AS name, CONCAT('http://', IFNULL( shop_domain.value, 'domain' ) , '/img/m/', m.`id_manufacturer` , '.jpg' ) AS img FROM `ps_manufacturer` m LEFT JOIN ps_configuration shop_domain ON shop_domain.name = 'PS_SHOP_DOMAIN' ORDER BY m.`id_manufacturer` 1 Link to comment Share on other sites More sharing options...
julianweb Posted May 5, 2016 Author Share Posted May 5, 2016 Gracias, a ver si tengo un rato y pruebo, ya os diré si doy con la tecla. Link to comment Share on other sites More sharing options...
Recommended Posts