Jump to content

Exportar fabricantes con las imágenes


Recommended Posts

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

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` 

  • Like 1
Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...