00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 $this->startSetup()
00027 ->addAttribute('quote', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00028 ->addAttribute('quote_address', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00029 ->addAttribute('quote_item', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00030 ->addAttribute('quote_address_item', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00031 ->addAttribute('order', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00032 ->addAttribute('order_item', 'gift_message_id', array('type' => 'int', 'visible' => false, 'required' => false))
00033 ->addAttribute('order_item', 'gift_message_available', array('type' => 'int', 'visible' => false, 'required' => false))
00034 ->addAttribute('catalog_product', 'gift_message_available', array(
00035 'backend' => 'giftmessage/entity_attribute_backend_boolean_config',
00036 'frontend' => '',
00037 'label' => 'Allow Gift Message',
00038 'input' => 'select',
00039 'class' => '',
00040 'source' => 'giftmessage/entity_attribute_source_boolean_config',
00041 'global' => true,
00042 'visible' => true,
00043 'required' => false,
00044 'user_defined' => false,
00045 'default' => '2',
00046 'visible_on_front' => false
00047 ))
00048 ->removeAttribute('catalog_product', 'gift_message_aviable')
00049 ->setConfigData('sales/gift_messages/allow', 1)
00050 ->endSetup();