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.

You are not logged in.

#1 2011-09-11 15:43

Heli
Member

Change product pictures folder

Hi all,

I have a common database for multiple shops and want to change the product_pictures directory in a link from another site on the same server that has it's own product_picture files.

Example:

site A: has the product_pictures folder here: public_html/a/published/...../product_pictures . (let's say something.com)
site B: has the product_pictures folder here: public_html/b/published/...../product_pictures . (let's say something.net)

Case 1:

I want in site B the product pictures shown to client to be from the folder of A (public_html/a/published/...../product_pictures). - i made changes, it works but when uploading new products in site A they doesn't appear in B. - only if they are olso in the B's folder.

OR

Case 2:
When I upload a file in A (public_html/a/published/...../product_pictures) it automatically goes to B (public_html/b/published/...../product_pictures)

PLEASE HELP !
Thanks

Offline

 

#2 2011-09-12 02:58

rat
Administrator

Re: Change product pictures folder

Try to make public_html/b/published/...../product_pictures a symlink to public_html/a/published/...../product_pictures.


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

Online

 

#3 2011-09-12 05:06

Heli
Member

Re: Change product pictures folder

Please help me with an example. I don't understanded so much from wikipedia.

I have to edit the .htaccess file ?

Thanks !

Offline

 

#4 2011-09-13 01:44

rat
Administrator

Re: Change product pictures folder

No, you have to use server command ln -s which creates a symlink. You should assign this task to a skilled specialist if you do not quite understand what it means. And this is only possible, if your web host provides ssh access to the server. If not, you may ask them to make this change.


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

Online

 

#5 2011-09-13 05:09

Heli
Member

Re: Change product pictures folder

I can use php handling to upload automatically in multiple folders ? If it-s possible where to edit the uploading pictures file from admin area ?

Offline

 

#6 2011-09-14 02:16

rat
Administrator

Re: Change product pictures folder

Look at file published/SC/html/scripts/modules/products/_methods/b_product_settings.php and specifically at function upload_picture.


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

Online

 

#7 2011-09-15 06:04

Heli
Member

Re: Change product pictures folder

Thank's rat. It works finally with symlinks.

Offline

 

Board footer

Powered by PunBB