Shopping Cart Operations > Tips and Tricks

use external URL for images

(1/2) > >>

zemadfrenchman:
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

abolabo:
hello.
try to paste this as html-resource of product


--- Code: ---<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>
--- End code ---

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.

zemadfrenchman:
That worked great, thanks!

logosewer:
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

abolabo:
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: ---<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>
--- End code ---
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)

Navigation

[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Social Login Mod