I need to change all image names to take the product name as their name.

I would like to create a cron that runs one time.

As far as I understand, I need the loaded product, so I can take its name and the catalog_product_entity_media_gallery table values, so I can change them accordingly.

Then if needed to create the folders in accordance to the convention (first 2 letters create the folders) and move said images in those folders.

Also I know I need to be aware of the different types of image (image, small_image, thumbnail).

I have created a Module and a model, which is displayed in the cron tasks, but I have no idea how to start the code.

Magento newbie here so any kind of assistance would be greatly appreciated!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.