Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Created November 15, 2013 18:47
Show Gist options
  • Select an option

  • Save ryaan-anthony/7489535 to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/7489535 to your computer and use it in GitHub Desktop.
<?php
$installer = $this;
$installer->startSetup();
$installer->getConnection()
->addColumn($installer->getTable('sales/quote'), 'ready_date', 'varchar(50)');
$installer->getConnection()
->addColumn($installer->getTable('sales/quote'), 'ready_time', 'varchar(50)');
$installer->getConnection()
->addColumn($installer->getTable('sales/order'), 'delivery_datetime', 'int(20)');
$installer->endSetup();
$setup = new Mage_Sales_Model_Mysql4_Setup('core_setup');
$setup->startSetup();
$setup->addAttribute('quote', 'ready_date', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('order', 'ready_date', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('invoice', 'ready_date', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('creditmemo', 'ready_date', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('quote', 'ready_time', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('order', 'ready_time', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('invoice', 'ready_time', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->addAttribute('creditmemo', 'ready_time', array('type' => 'varchar', 'visible' => false, 'required' => false));
$setup->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment