Skip to content

Instantly share code, notes, and snippets.

@hyhoocchan
hyhoocchan / CreateProductAttribute.php
Last active September 23, 2015 07:54
[Catalog/Product] - Create product attribute - multiselect
<?php
// Used for multi select
$installer->addAttribute('catalog_product', "hair_style", array(
'group' => 'Your Group',
'type' => 'varchar',
'input' => 'multiselect',
'label' => 'Hair Style',
'visible' => 1,
'sort_order' => 20,