Jump to content


show the image from remote url


  • Please log in to reply
3 replies to this topic

#1 jacksammy



  • Members
  • Pip
  • 3 posts

Posted 25 October 2015 - 01:26 PM

I need to show the image from the remote url on front-end, I dont want to load the image to local host.and I add the table in prestashop database, to store the image url. and how to updata other files to show the image? I use the default theme.thanks

looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 vekia


    Advanced Member

  • Members
  • PipPipPip
  • 10104 posts

Posted 26 October 2015 - 10:34 AM

you have to create php script to get these urls from database
then include a smarty variable (array) that contains these url
in .tpl file do forach loop on that array
and display images in that way: <img src="{$array.value}"/>

free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png

#3 jacksammy



  • Members
  • Pip
  • 3 posts

Posted 26 October 2015 - 02:19 PM

thanks for your reply. but how to do it? in  which file we need to finish the function.thanks a lot. can you send me your email? my email: prestashop2019@sina.com

#4 Guest_Trius Infotech_*

Guest_Trius Infotech_*
  • Guests

Posted 29 October 2015 - 07:38 AM

Hello Hohn,


I am Arun from freelancer.com. Please answer below questions so that I can help you!!


1. Please share your website URL
2. From do you want to get images and are those images accessible to public?
Look forward to hear from you.

IPB Skin By Virteq