Manage Products ->
Edit a product ->
Images I've added 2 new columns (which are located in the
Those 2 columns are filled every time there is a media import and each field only show the value (you can't enter a new value). It's also used on the frontend. I've modified in my own theme the correct admin template file and created a new product.js to display the 2 new fields. So far everything is working as intended.
But whenever a user tries to modify something in the
Images section, let say the label of an image or the position, my 2 custom fields are not saved and Magento give them the
Because the 2 new columns are not input fields, I thought Magento would not update it, but looks like it does. I've been trying to find where the label and position are saved for the
Images section so that I can add my custom values but I can't find it. Could somebody point me in the right direction?
Or would it be better to listen to the catalog_product_save_after event and create an observer to save my custom values?
Any help would be great, thank you.