Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change directory for images


pedro_alfaiate

Recommended Posts

hello all, i'm from portugal, sorry about my english :)

 

I've a little problem, I add a big list of products and I import it to Sql. but the image product is not saved in my server, not in the images folder. It saves in sql database the url of the image product, for example http://xpto/image.jpg.

 

when i go to my shop the image is not showed, all I see is a red X, but I know why this happens, because the link that the image get is http:/mystore.com/images/http://xpto/image.jpg.

 

all I ineed to know is where will I change the code to read the image exactly from http://xpto/image.jpg

 

thanks all, and once again sorry about my bad english :)

Link to comment
Share on other sites

I added to my includes/configure.php files (catalog/admin) the following extra line:

 define('DIR_WS_IMG_EXT', 'http://www.somedomain.com/images/');

 

In catalog/admin files where product images are called (like in product_info.php) I changed DIR_WS_IMAGES to DIR_WS_IMG_EXT

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...