0

Created a module ,in which created some custom product attributes for products.Thus added few new rows in eav_entity table using InstallData.php file. Everything working fine. But even I disabled the module through admin panel, the custom fields still presents in product add/edit forms and the rows are still in rows in eav_entity table.

Tried Uninstall.php , but I think it didn't invoke while disabling the module.

Is there any way to delete the custom db data created through InstallData.php file, while disabling a module from admin panel.

I need a programmatic solution, by which the one who use the module should be able to disable the module from admin panel and everything related to that module should be deleted from db thus the custom fields should not presents in product add/edit forms.

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.