Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help me


blr044

Recommended Posts

For over a week am having problems with images folder. There is a a max of 2000 files for my images directory. My host is telling me to create two folders and keep product images in one of them. If this is the case, I can move product images. Looking into includes/configure.php and admin/includes/configure.php - I could change this section from:

 

  define('DIR_WS_IMAGES', 'images/');

 

to this:

 

  define('DIR_WS_IMAGES', 'store_images/images/');

 

But that would put all images likebg images, box corners and etc.

 

So if that is the correct way, are there other files that to be edited also.

 

Thanks.

Link to comment
Share on other sites

That would only make "images" a sub-directory. It wouldn't get over the 2000 limit. You could just create a new or some new directories above images and change the path-to-image, from your MySQL GUI, a backup or a downloaded CSV file.

 

Or, you could install Image Sub-Directory Support and create new directories for future products.

Link to comment
Share on other sites

That would only make "images" a sub-directory. It wouldn't get over the 2000 limit. You could just create a new or some new directories above images and change the path-to-image, from your MySQL GUI, a backup or a downloaded CSV file.

 

Or, you could install Image Sub-Directory Support and create new directories for future products.

 

Sorry, but the image sub-directory is for future products. At present, my images directory is in the root ( catalog/images ). In that that directory is all my images plus the other folders that oscommerce put into that directory. When one considers, I have over 1700 product images. Changing configure does not work. Do not see images in mysql to change path to image. So I think I need a little help with this.

Link to comment
Share on other sites

What I meant was, if you change the configure files to what you posted:

 

define('DIR_WS_IMAGES', 'store_images/images/');

 

you are only making the images directory a sub-directory of store_images so not solving your 2000 file limit issue.

 

If you want new directories for all new products you are going to create, the contribution I linked to will work for you. It gives you the option to create a new sub-directory in the images directory. When you do that, you declare it thus:

 

/new-directory/

 

then upload your image and the contribution creates images/new-directory, placing the uploaded image within. However, if you were to declare the new directory like this:

 

../new-directory/

 

it will create new-directory outside of the images directory, solving the limit problem.

 

There are plenty of ways to cook a spud so that isn't the only way to do it. If you want to start editing the database instead, we'll go through it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...