I'm trying to create a new attribute, but my install script does not run.




/* @var $installer Mage_Eav_Model_Entity_Setup */
$installer = $this;

$entityType = Mage_Catalog_Model_Product::class;
$productGroup = 'Prices';

$attributes = [
    'namespace_shipping_price' => [
        'type' => 'decimal',
        'label' => 'Shipping costs',

foreach ($attributes as $attributeName => $attribute) {
    $createdAttribute = $installer->addAttribute(
            'backend_type' => $attribute['type'],
            'label' => $attribute['label'],
            'group' => $productGroup,
            'user_defined' => true,
            'required' => false,

I can't find anything in logs and also in core_resource the module is not available.

  • Do you see the module in Configuration > Advanced? – Tim Cieplowski May 18 '17 at 15:09
  • Yes, I can see the module in there – Paul May 19 '17 at 7:01

Seems I have a totally different issue. When changing app/code/core/Mage/Core/Model/App.php:424

if (!$this->_config->loadModulesCache()) {


if ($this->_config->loadModulesCache()) {

It does load. So I'm going to find out why my cache doesn't clear.

  • It is typically advised to manually clear cache after deploying a code change. – Tim Cieplowski May 19 '17 at 13:06

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.