In Magento, when I’m creating a product from Catalog -> Manage Products -> Add Product, after I have uploaded the images in the Images tab, I have always have to enter the label text for each of the images, mostly having to copy the product name and paste it into every one of them.
My question is, is there any way for Magento to auto-populate the image label as product name after I have uploaded the images?
Thus far I tried adding JavaScript to the end of /app/design/adminhtml/default/default/template/catalog/product/edit.phtml for the label input text to grab the value of <input id=”name” /> but it doesn’t work because the label input is not loaded when the page loads but only after image uploads…
Any idea I could get this done? Thanks!
Why not just edit your template file that displays the images to set the image label to the product name?
/app/design/frontend/base/default/template/catalog/product/view/media.phtml should be the file you would have to modify to make that happen. (The path could be different based on your Magento configuration)