Jump to content

Product image with full URL?


AndieR
 Share

Recommended Posts

Hello,

I was wondering if there is any mod or way to change prestashop so that the product images stored in the database are absolute URLs such as http://www.domain.com/img/photo.jpg rather than storing them on the server?

I mean I have a store that needs to pull the photo from another website (yes the other website allows it) and I was wondering about how to do this...

Thank you,
Andrea

Share this post


Link to post
Share on other sites

This would be very difficult to do. Prestashop doesn't store image URLs in the database. It just uses the product ID and image ID and then checks whether the file exists. It would require modifications to the database and much of Prestashop's code to do what you want.

Share this post


Link to post
Share on other sites

This can be done but like he said it takes a lot of code. if you are importing the information you can use the url to import the image into prestashop and it will be uploaded to your database and into images folder. this does require the site to allow it. I am doing this when I import the produucts for my site
www.beta.shoptoolsusa.com will be live this week
rylersbud

Share this post


Link to post
Share on other sites

Thank you for the input! :) Any pointers on what files would need to be changed? I don't need the backend to be changed because I don't use that to add products just the frontend listing pages where it pulls the products images. Thank you again!

Andrea

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More