Jump to content

Using an external url as product image source?


Guest sean.wingad

Recommended Posts

Guest sean.wingad

I have a large product database that uses outside urls as the product image source.

When using the "view source" function in IE, the code is as follows :

SRC="images/uploads/xxxxx.jpg

My goal is to drop the :

"images/uploads/"

And just have the :

SRC="http://xxxxxxxxxxx.jpg

The image urls are sucessfully uploaded into the php database, so now I think I need to change the path of the code, to pull the urls from the database

rather than ftp://xxx/images/uploads/

Then theres the resizing issue from thumbnail to full size product image.

This problem has been driving me crazy!

Can anybody point me in the right direction?

Link to comment
Share on other sites

Guest Brivtech

Bear in mind that if you have SSL for the secure pages (Checkout, registration, etc.), it'll produce errors of displaying non-secure items on the page to your customers.

Link to comment
Share on other sites

Guest sean.wingad

Bear in mind that if you have SSL for the secure pages (Checkout, registration, etc.), it'll produce errors of displaying non-secure items on the page to your customers.

Hi, Thanks for the tip.

But do you have any idea how to achieve using external urls as product picture?

Assuming they are all coming from the same domain, just add the first part of the domain path in the template file, and use the product code as the image number instead of the image filename.

Link to comment
Share on other sites

Guest sean.wingad

Bear in mind that if you have SSL for the secure pages (Checkout, registration, etc.), it'll produce errors of displaying non-secure items on the page to your customers.

Hi, Thanks for the tip.

But do you have any idea how to achieve using external urls as product picture?

Assuming they are all coming from the same domain, just add the first part of the domain path in the template file, and use the product code as the image number instead of the image filename.

Thanks for help,

But im not quite sure where to add the first part of the domain?

Please could you explain in further detail? it would be greatly appreicated.

Thanks

Bear in mind that if you have SSL for the secure pages (Checkout, registration, etc.), it'll produce errors of displaying non-secure items on the page to your customers.

Hi, Thanks for the tip.

But do you have any idea how to achieve using external urls as product picture?

Assuming they are all coming from the same domain, just add the first part of the domain path in the template file, and use the product code as the image number instead of the image filename.

Thanks for help,

But im not quite sure where to add the first part of the domain?

Please could you explain in further detail? it would be greatly appreicated.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...