Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

when I delete an item it deletes the pic?


tails2k

Recommended Posts

Is there a way to prevent this from occuring, I use the same images for many items... and I have to rename the image file if I remove old product then rename it back?

Link to comment
Share on other sites

hi just install my updated modification at

 

http://www.oscommerce.com/community/contri...ons,1047/page,4

 

to see how many times you have used your image in your products table (database).

 

It will not delete your image also, only when you say it has to be deleted :)

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Worked like a charm I had to change this line of code:

 

$smallfile= '../' . DIR_WS_IMAGES . $pInfo->products_image;

 

to :

 

$smallfile= '../catalog/' . DIR_WS_IMAGES . $pInfo->products_image;

Link to comment
Share on other sites

i understand that change in your setup.

Everyone installs it on his own way to keep it a little safer.

 

I am happy this little 'mod' worked out well for you.

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...