Jump to content

SQL query for multiple product images.


ph0enix993

Recommended Posts

Hi,

I'm exporting products into XML and I have a problem. This query...

concat('http://', ifnull(conf.value,'website.com'), '/img/p/',SUBSTRING(pi.id_image from -5 FOR 1), '/',SUBSTRING(pi.id_image from -4 FOR 1),'/',SUBSTRING(pi.id_image from -3 FOR 1),'/',SUBSTRING(pi.id_image from -2 FOR 1),'/',SUBSTRING(pi.id_image from -1 FOR 1),'/' , pi.id_image, '.jpg') as 'mainPicture'

...exports only 1 picture per product.  

 

Most of my products have 3-4 pictures and would love to export them all.

Link to comment
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...