1

I'm very new in Magento. I want to remove one of the attributes in Magento.

Call it PDF Preview.

When i click it, this error message pops up : Fatal Error

Can someone please advise what i need to do to remove the Attributes? I've read the documentation : Remove custom attribute

But i don't undertand how to run the files.

Thank you!

0
1

Just create a file with this content and call it from browser:

MAGENTO_ROOT/filename.php

require 'app/Mage.php';
Mage::app('admin');

$setup = Mage::getModel('eav/entity_setup', 'core_setup');
$setup->startSetup();
$setup->removeAttribute('catalog_product', 'your_attribute_code');
$setup->endSetup();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.