im creating a component, and let me add a picture gallery like ebay, whenever you selected a product (the main one around the playing the little pictures).

i wanna know how do i make within the after sales so the items i give a new item, it produces a brand new folder named by its ID around the sql table, after which upload some images there (from that products view).

within the frontend, when someone loads a product it'll search for its corresponding folder and load the pictures.

also, i have to extend the 'delete' function so whenever a remove a product, it removes his folder and also the images within it. where must i extend that function?

thnx!!!