tails2k Posted March 5, 2003 Share Posted March 5, 2003 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 More sharing options...
Druide Posted March 5, 2003 Share Posted March 5, 2003 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 More sharing options...
tails2k Posted March 5, 2003 Author Share Posted March 5, 2003 Awesome, thanks so much! :lol: Link to comment Share on other sites More sharing options...
tails2k Posted March 5, 2003 Author Share Posted March 5, 2003 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 More sharing options...
Druide Posted March 6, 2003 Share Posted March 6, 2003 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 More sharing options...
Guest Posted March 6, 2003 Share Posted March 6, 2003 nice add-on thanks for the contribution! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.