Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created November 12, 2014 03:58
Show Gist options
  • Save deivisonarthur/0279e5683c386752cd7b to your computer and use it in GitHub Desktop.
Save deivisonarthur/0279e5683c386752cd7b to your computer and use it in GitHub Desktop.
Como remover atributos das categorias do magento (atributo fdp criado por theme comprada) ERRO: Modelo base "neoshopsettings/blockposition" não encontrado para o atributo "category_block_position" - da template neoshop do themeforest
<?php
include_once 'app/Mage.php';
//Mage::app('default');
Mage::app();
$installer = Mage::getResourceModel('catalog/setup','catalog_setup');
$installer->startSetup();
$installer->removeAttribute('catalog_category', 'category_label');
$installer->removeAttribute('catalog_category', 'category_block_position');
$installer->removeAttribute('catalog_category', 'custom_block_position');
$installer->removeAttribute('catalog_category', 'category_icon');
$installer->removeAttribute('catalog_product', 'customtabtitle');
$installer->removeAttribute('catalog_product', 'customtab');
$installer->removeAttribute('catalog_product', 'display_countdown');
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment