Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Images


Guest

Recommended Posts

I wish to change the location of my product images to

 

images/stock

 

I know it is not that important an issue but I like to keep everything tidy

 

Any ideas?

 

Many thanks

 

Russell

Link to comment
Share on other sites

I wish to change the location of my product images to

 

images/stock

 

I know it is not that important an issue but I like to keep everything tidy

 

Any ideas?

 

Many thanks

 

Russell

 

what way are you using to upload them?

 

if it's EP, just name the image 'stock/imagename.jpg'

 

if it's via osC admin, it's more complicated

 

you basically only have 2 options then:

option 1:

 

1) change the directory the image is uploaded to, and change all references to products pics in catalog and admin for the new path (I know this would SUCK)

2) do not change the directory of the upload. Have the variable of the image changed to 'stock/' . $image_name before the insert happens. You will NOT be able to see the correct pic in the preview if you do this (unless you change the path in the preview, which will then result in broken images for products you are editing ... of course you could make that an if/else clause to show evrything just fine)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...