Tuesday , April 23 2024
Home / Magento / How we can add one more new option in product images in magento?

How we can add one more new option in product images in magento?

You would need to update following files :
1) appcodecoreMageCatalogModelProductAttributeBackendMedia.php
2) appcodecoreMageCatalogModelResourceProductAttributeBackendMedia.php
3) appcodecoreMageCatalogModelProductAttributeMediaApi.php
4) appdesignadminhtmldefaultdefaulttemplatecatalogproducthelpergallery.phtml
5) jsmageadminhtmlproduct.js
Also You would need to alter table “catalog_product_entity_media_gallery_value” and Add field in Table ‘newoption’

How we can add one more new option in product images in magento please follow below steps :
Step 1)
Run the Following MySQL Query :

Select Code
"ALTER TABLE `catalog_product_entity_media_gallery_value` ADD `newoption` VARCHAR(255) NOT NULL AFTER `label`";


Step 2)
Made the following changes to appcodecoreMageCatalogModelProductAttributeBackendMedia.php

Step 3)
Made the following changes to appcodecoreMageCatalogModelResourceProductAttributeBackendMedia.php

Step 4)
Made the following changes to appcodecoreMageCatalogModelProductAttributeMediaApi.php

Step 5)
Made the following changes to appdesignadminhtmldefaultdefaulttemplatecatalogproducthelpergallery.phtml

Step 6)
Made the following changes to jsmageadminhtmlproduct.js

Step 7)
You have done Please check new option in your product images tab in admin panel.

About v.shakya

I am V.Shakya, Software Developer & Consultant I like to share my ideas, views and knowledge to all of you who come across my website. I am young, enthusiastic, highly motivated and self disciplined person. I completed my studies in Master of Computer Application and currently giving my technical expertise to one of the Big IT company. I have more than fifteen years of experience in vast field of Programming , Designing and Development of websites and various software's.

Check Also

How to create an observer in Magento?

How to create an observer in Magento.? —————————– We are consider that you are familiar …

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.