Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.

Take the chance to buy
Shop-Script 5 at the low price
Save $30 only until May 31!
Your last chance!
8 days left

You are not logged in.

#1 2012-03-25 04:15

good168
Member

Hosting product images in another website

Hi all,

I have looked thru all the forum and i have not found a way to solve this problem:

I have all my product images (hundred of thousands of them) already hosted in another website and i do not wish to move/import all of them into my website. There are many reasons i do not want to import / move them and one of them is bandwidth problem that cannot be solved easily.

So how can i do that? is there any code i need to modify so that i will work?

please help me on this matter, MANY thanks!!

Eric

Offline

 

#2 2012-03-26 02:16

rat
Administrator

Re: Hosting product images in another website

Do you have both websites within one web-hosting account or are they physically located on different servers?


Be careful what you wish for — you might get it.

Offline

 

#3 2012-03-26 02:21

good168
Member

Re: Hosting product images in another website

They are physically located on different servers

thanks for your quick reply!

Offline

 

#4 2012-03-26 04:18

rat
Administrator

Re: Hosting product images in another website

Then you can edit storefroint template files containig code

Code:

{$smarty.const.URL_PRODUCTS_PICTURES}

and replace it with

Code:

http://othershop.com/published/publicdata/OTHER_SHOP_DBKEY/attachments/SC/products_pictures

where othershop.com must be changed to the domain name of the other online shop and OTHER_SHOP_DBKEY to its database key.


Be careful what you wish for — you might get it.

Offline

 

#5 2012-03-28 01:13

good168
Member

Re: Hosting product images in another website

Very good, but one last problem:

my product pictures are grouped inside folders. for example for productID # 12345, the pictures are located in:
http://othershop.com/published/publicdata/OTHER_SHOP_DBKEY/attachments/SC/products_pictures/12300

and for product ID #23456, the pictures are located in:
http://othershop.com/published/publicdata/OTHER_SHOP_DBKEY/attachments/SC/products_pictures/23400

and etc..
(so that means for each folder, it holds images of each 100 products)

and so how can i add the folder names right before the picture file names?

my shop will be opened after this problem is solved!

your help is very much appreciated!

Offline

 

#6 2012-03-28 03:14

rat
Administrator

Re: Hosting product images in another website

I could assign a unique "page ID" value for each product and change the image storage logic to retrieve images from subfolders with names matching products' page IDs rather than their productIDs. It is easier to have the same page IDs in several databases than maintaining an equal list of productIDs. Of course, it would not be easy, but I cannot see an easier way.


Be careful what you wish for — you might get it.

Offline

 

Board footer

Powered by PunBB