BlackHeart Posted October 31, 2005 Posted October 31, 2005 Hi anyone I have a big problem. For my shop I have a database with about 35.000 items incl. a link for each item to download the images from the manufacturers server. After completing the shop I will get an update every week wit about 2000 items. The convertion of the database to Easy Populate was successful. I can make it in 15 min. But the problems are the images. No chance to download 35.000 pics from the manufacturers server and to upload them again to my server. Here I must find a solution to show pics in my shop without copying them to my server. Any Idea how I can solve this problem ? greetings
♥Vger Posted October 31, 2005 Posted October 31, 2005 You are going to be out of luck on that I'm afraid. You could hardcode your path to 'images' to an offsite 'images' folder - but then all of the sub-folders would have to match, that other server would also have to carry your own osCommerce images, and you'd have to have the pathway entered into your database every time you added products to it. Vger
MarcoZorro Posted October 31, 2005 Posted October 31, 2005 Any Idea how I can solve this problem ? It can be done but be prepared for your site to slow down as it will need to make a connection to the other server for each image... so say for example you have a page with 10 products on your server will make 10 connections to the server with the images on before that page is displayed. basically what you need to do is in easy populate where it has the section for image enter it as http://www.imageserver.com/images/imagename.jpg This will then load the image from the remote server for that product. Then you need to edit any code which displays a product image and change tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) to tep_image($product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) Note: This is not something I would recommend if it can be avoided ;)
♥Vger Posted October 31, 2005 Posted October 31, 2005 It would be a nightmare. Have you ever noticed how this forum hangs when just one of the offsite advertising images won't download at the top of the forum? Vger
MarcoZorro Posted October 31, 2005 Posted October 31, 2005 It would be a nightmare. Have you ever noticed how this forum hangs when just one of the offsite advertising images won't download at the top of the forum? Yep.. this is why I dont recommend it :)
BlackHeart Posted October 31, 2005 Author Posted October 31, 2005 Hi, in which files can I find this codes ? to tep_image($product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) Note: This is not something I would recommend if it can be avoided ;)
MarcoZorro Posted October 31, 2005 Posted October 31, 2005 You will find it in a number of files.. product_listing.php specials.php product_info.php and some other places I cant remember at the moment.... basically any page that displays products will be effected.
BlackHeart Posted November 1, 2005 Author Posted November 1, 2005 Hi :rolleyes: thanks to all for helping. Nothing works. I have tried serveral ways mentioned in several forums. Whenever I change a file, no pic is shown. It seem I have to load them down an up on my server again. greetings
Recommended Posts
Archived
This topic is now archived and is closed to further replies.