Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Images?


SimonWard

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...