fut Posted May 5, 2006 Posted May 5, 2006 When adding a new product the image goes into the /images/ folder. However, where my pdoucts are listed the image shown comes from /imagecache/ folder - this is to save space. However, when add new products the image doesn't goto the imagecache folder. If I try to drag a copy of the image into that folder it isn't compressed, and is pixelated when viewed on my product list. What can I do? Thanks!
Guest Posted May 6, 2006 Posted May 6, 2006 where the imagecache folder comes from? If it's from the a contribution you could check the support thread or check the contribution's code. It's hard to understand where this is coming from.
Guest Posted May 6, 2006 Posted May 6, 2006 where the imagecache folder comes from? If it's from the a contribution you could check the support thread or check the contribution's code. It's hard to understand where this is coming from. how do I change the default image path? I don't want my images to have to come from catalog/images I want to be able to link product images from other projects on my server.
Guest Posted May 6, 2006 Posted May 6, 2006 the default image paths are in the includes\configure.php files But there're some contributions where the product images can be categorized within separate folders. like this one http://www.oscommerce.com/community/contributions,2409
Guest Posted May 6, 2006 Posted May 6, 2006 the default image paths are in the includes\configure.php files But there're some contributions where the product images can be categorized within separate folders. like this one http://www.oscommerce.com/community/contributions,2409 hmm thanks. I've playing with the configure files for a couple of days now. Is there any contributions for adding any image path you want through the product image upload tab? (which only links to files uploaded to catalog/images unfortunately)
Guest Posted May 6, 2006 Posted May 6, 2006 yes I remember seeing some of the multiple image contributions do that. They simply provide an extra option or simply accept user input for the image path directly. It is much simpler than the file input actually.
Guest Posted May 7, 2006 Posted May 7, 2006 thanks mate. looking into the multiple image contributions I found this http://www.oscommerce.com/community/contributions,1400 but unfortunately it is in german! I did a google translate. Here is the translation: Product image by URL Author: Klaus K?ster INSTALLATION: edit the following file; edit this file: catalog/includes/functions/html_output.php look for the following lines, search the following LINEs OF code: /////////////////////////////////// // The HTML image more wrapper function function tep_image ($src, $alt = '', $width = '', $height = '', $parameters = '') { if ((empty ($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == ?false?)) {return false; } behind it you insert please the following lines, behind this ADD the following LINEs: / Some people want ton of display image comming fron everywhere on the net. // ton of DO this, place picture into the image field OF at URL OF your shop. // ADD the following LINEs tons html_output.php. Now have fun, Klaus Koester if (substr_count ($src, ?http://?)){ $src = stristr ($src, ?http://?); } DESCRIPTION/DESCRIPTION What makes osCommerce with the product pictures? It writes before the picture name thus images/Bild.jpg to images or in such a way. Then the HTML code generated: <img src= " images/Bild.jpg? Now, which the two inserted lines make? It checks simply whether it gives in the picture name an http://. If no, nothing and the old code happen seize. If, everything is deleted before http://. If you want to distribute your pictures thus now into sublists, then you insert these two lines and referenzieren your pictures in such a way: http://www.domain.de/catalog/images/subdir/image.jpg Advantage: I can referenzieren pictures locally or also remotely. Disadvantage: is not because of these changes, but at the field length of the field that the picture names contains. I believe to have looked after 64 without now again. But one can adapt that. SUPPORT one does not offer GUARANTEE none is taken over CREDITS Over a Mail concerning experience with these Contrib I will be pleased much; Please tell ME your experience about this contrib: mailto:[email protected]
Guest Posted May 7, 2006 Posted May 7, 2006 it is much simpler basically if you look your admin\categories.php file you will see a line for the input image file tep_draw_file_field('products_image') To make that into an input field you change it to tep_draw_input_field('products_image', $pInfo->products_image) So you can specify the image path directly. like if you do my_picture.gif the code will expect to find the image in the catalog\images directory
Recommended Posts
Archived
This topic is now archived and is closed to further replies.