Page 1 of 1

Image management - remove on auction delete

PostPosted: Fri May 23, 2008 7:19 am
by bobede
Is here a way the the product_image can be deleted at the same time the auction is deleted?

PostPosted: Fri May 23, 2008 10:01 am
by shannah
I have added this as a feature request in the issue tracker:
http://bugs.weblite.ca/view.php?id=176

I have also posted a patch file that implements this feature as part of the bug report. You can apply this patch yourself, or wait for the next release that will include the patch.

Best regards

Steve

PostPosted: Fri May 23, 2008 6:22 pm
by bobede
Thanks Steve!

I'll need to work with it a bit, as I've added extra product images, but I'm sure I'll get it.

Bob

PostPosted: Fri May 30, 2008 6:01 am
by bobede
That worked perfectly. I was able to expand on the new function so that it would also delete any additional images. I simply duplicated your code 3 extra times and made sure the references to the fields in the products table were changed. I also changed the variable names, although I'm not sure if that was really necessary.

Thanks again.