Jump to content

Help writing an SQL query (where can I find the URL's)


Recommended Posts

I'm trying to write a query to extract the URL's for each of my products and the main images of each product.

However I can't seem to figure out where this data is kept in the DB. Does anyone know where I can find this?

Link to comment
Share on other sites

I am afraid you cannot achieve that with a MySQL query. The info that you have in the database is the product IDs and the images IDs - you will have to map those with the actual products you have on your web site. You have those stored in the ps_image table (the ps_ prefix might vary depending on your prestashop installation).

Link to comment
Share on other sites

Thanks muktadir but I'll pass for now.

I figured out a compromise. I wrote an SQL script that gives me like 6 of the 8 fields that I need (i'm creating a data feed) so I only need to obtain the last 2 (the URL's) manually, which isn't too bad. Only takes me like 2 minutes if I keep the spreadsheet updated as I go.

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...