Source model not found for attribute – mango theme issue when you use custom megamenu

Recently i was received a requirement for install megamenu on smartwave theme but when i tried to install it was giving me error

So when i checked with mango theme author they said submit a ticket wait for it to be fixed don,t know how long so i spent some
time and write a script to remve attributes from database i have tested this script on magno theme only !

I strongly recomond you take back before run this script ! think safety do safely.

Create a file fixit.php in root folder where you magento is installed and past this bellow code into file

in url type your domain.com/fixit.php
it will show you message fixed Finished
go into admin check now all should work enjoy if you me to implement it on your store message me on Contact us 

<?php
include ‘app/Mage.php’;
Mage::app();
$setup = Mage::getResourceModel(‘catalog/setup’, ‘catalog_setup’);
$setup->removeAttribute(‘catalog_category’, ‘sw_product_staticblock_tab_1’);
$setup->removeAttribute(‘catalog_category’, ‘sw_product_staticblock_tab_2’);
$setup->removeAttribute(‘catalog_category’, ‘sw_product_staticblock_tab_3’);
$setup->removeAttribute(‘catalog_category’, ‘sw_product_staticblock_tab_4’);
$setup->removeAttribute(‘catalog_category’, ‘sw_product_attribute_tab_5’);

echo ‘Finished’;

Leave a Reply

Your email address will not be published. Required fields are marked *