Author Topic: use external URL for images  (Read 9356 times)

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
use external URL for images
« on: February 24, 2013, 08:59:47 PM »
Hi I am wondering if there is any way to use external image URLs for my products? My supplier provides me a CSV with all product information and image URLs which are hosted on their systems are part of that. I could pull all those images down via a script and attempt to bulk load them in and link up with product information but this would be very time consuming.

Is there any way to configure a resource to be an absolute url path? I tried doing it as a HTML resource and the img tag but it displayed incorrectly (to do with automatic resize not working for external images I guess?)

Anyone come across this problem before?

Comfortable with SQL if this can be hacked in

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: use external URL for images
« Reply #1 on: February 25, 2013, 12:01:14 AM »
hello.
try to paste this as html-resource of product

Code: [Select]
<a class="thickbox" rel="gallery" title="your title test" href="http://yourdomain.com/your_image.jpg">
<img width="45" alt="" src="http://yourdomain.com/your_image.jpg">
</a>

you can to set another width of small img.. 45 it's just example.
We use thickbox.js as default jquery gallery viewer, but we plan to migrate on more advanced in the future.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: use external URL for images
« Reply #2 on: February 25, 2013, 12:53:12 PM »
That worked great, thanks!

Offline logosewer

  • Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
    • View Profile
Re: use external URL for images
« Reply #3 on: October 21, 2014, 04:21:46 AM »
Hello
i'm trying to put an  url into the" image url or html resource box",but am getting a hypertext link on the 1st page with all the products in the category,and then when I click on the product title ,the page opens,there is the picture,it says 'loading',and below it is a slightly bigger version(without loading written on it)
Do you know what I 'm doing wrong please?
Thanks.
Peter

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: use external URL for images
« Reply #4 on: October 24, 2014, 06:57:55 AM »
try to replace file public_html/storefront/view/default_html5/template/pages/product/product.tpl and go to admin side, open resources and add new resource with code for ex.

Code: [Select]
<a rel="position: 'inside', showTitle: false, adjustX:-4, adjustY:-4"
 class="thumbnail cloud-zoom"
href="https://pp.vk.me/c7001/c7006/v7006803/13cb2/kpRRUO7tfE4.jpg"
title="ssssssss"
style="height:1%; width: 1%;">
<img src="https://pp.vk.me/c7001/c7006/v7006803/13cb2/kpRRUO7tfE4.jpg" alt="aaaaaaaa" title="eeeeee" style="max-height:250px; max-width: 250px;">
</a>
then map this to product and set this new resource first (!)   then go to on product page in storefront.
i don't know how to make additional image listing abstractly. Your case is customization. I shows you solution only for main image of product. Other additional images needs to process in the tpl (see line 69)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: use external URL for images
« Reply #5 on: October 24, 2014, 09:29:12 AM »
Hi abolabo,i have also tried to edit the tpl file,it works for the additional image,but haven't found the solution for the product_list page yet.All i need is just to put the url link in the image url or resource html such as :
Code: [Select]
http://xxx.xxx.xxx/xxx.jpg
Here is my file.

 

Powered by SMFPacks Social Login Mod