Skip to content

Instantly share code, notes, and snippets.

@aliomattux
Created March 9, 2016 21:04
Show Gist options
  • Save aliomattux/02d8bc4bec1201398676 to your computer and use it in GitHub Desktop.
Save aliomattux/02d8bc4bec1201398676 to your computer and use it in GitHub Desktop.
<?php
/**
*
* @category USWF
* @package GroupedCartName
* @author Kyle Waid
*/
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();
$installer = $this;
if (!$installer->getAttributeId('catalog_product', 'eps_image')) {
$installer->addAttribute('catalog_product', 'eps_image', array(
'type' => 'varchar',
'label' => 'EPS Image',
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
'visible' => false,
'required' => false,
'searchable' => true,
'is_configurable' => false,
));
}
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment