SimonWard Posted January 14, 2007 Posted January 14, 2007 Hello, Im trying to configure oscommerce to upload the product images to a sub dir, so the path would be ' images/productimage/ ' rather than ' images/ ' However im not having much luck. Anyone? Simon My first Contribution - Extra payment method text
usernamenone Posted January 15, 2007 Posted January 15, 2007 Your question is missing something so I will try to quess what you need to do. You create a folder called product_images and load those images inside that folder and then upload to your server. When you are asked for your image while creating a product discription your location would be images/product_images/name_of_image.extention and do not brows for it. You may get a warning that no file was uploaded and this will be correct as you did not upload a file.
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 Your question is missing something so I will try to quess what you need to do. You create a folder called product_images and load those images inside that folder and then upload to your server. When you are asked for your image while creating a product discription your location would be images/product_images/name_of_image.extention and do not brows for it. You may get a warning that no file was uploaded and this will be correct as you did not upload a file. Sorry mistake, Thats is similar to what i want to do, but im really after changing the dir so when i upload a image from the ' add product ' page its stored in ' images/product image/ ' Really i just want to change the code to where the add product uploads the file and where the system looks for the product images. Simon My first Contribution - Extra payment method text
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 people? My first Contribution - Extra payment method text
jonquil Posted January 15, 2007 Posted January 15, 2007 Just taking a logical wild whack but in includes/configure.php, would this not work? Existing Line 23: define('DIR_WS_IMAGES', 'images/'); Existing Line 24: define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); Change Line 23 to: define('DIR_WS_IMAGES', DIR_WS_IMAGES . 'product_images/'); or Leave Line 23 alone and add: define('DIR_WS_PRODUCT_IMAGES', DIR_WS_IMAGES . 'product_images/'); In the above case, you'd need to edit the code for the products' call "DIR_WS_IMAGES" to "DIR_WS_PRODUCTS_IMAGES" (everywhere it appears) so you don't affect the other non-product images that are in your images/ directory. There's probably a Contribution for this. I have no clue which one it would be. jon It's all just ones and zeros....
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 cheers, i will have a go and see what happens, that is what i was expecting anyway. I couldnt find a contrib that does this, i searched for ages looking through each one.. Simon My first Contribution - Extra payment method text
jonquil Posted January 15, 2007 Posted January 15, 2007 Don't forget to BACK UP before you make any major edits :) jon It's all just ones and zeros....
MagickWomyn Posted January 15, 2007 Posted January 15, 2007 Just a couple of options: http://www.oscommerce.com/community/contri...earch,image+sub http://www.oscommerce.com/community/contri...arch,image+tree HTH
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 the last one sounds good, wonder if it will work for products already inputted within the system My first Contribution - Extra payment method text
MagickWomyn Posted January 15, 2007 Posted January 15, 2007 Take a peek at V1.2 date 5 Sept 2004. I think this one will do what you want.
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 Take a peek at V1.2 date 5 Sept 2004. I think this one will do what you want. So it does ;) My first Contribution - Extra payment method text
SimonWard Posted January 15, 2007 Author Posted January 15, 2007 It did work, but when i went into the categories section within the admin area, it would load, came up with php errors, so i removed the errors and then every time i would press the edit, move, copy, delete buttons it would skip the whole process and go back to the original. My first Contribution - Extra payment method text
Recommended Posts
Archived
This topic is now archived and is closed to further replies.