Esempio n. 1
0
 public function install()
 {
     $OSCOM_Database = Registry::get('Database');
     parent::install();
     $OSCOM_Database->simpleQuery("insert into " . DB_TABLE_PREFIX . "configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display Total', 'MODULE_ORDER_TOTAL_TOTAL_STATUS', 'true', 'Do you want to display the total order value?', '6', '1', 'osc_cfg_set_boolean_value(array(\\'true\\', \\'false\\'))', now())");
     $OSCOM_Database->simpleQuery("insert into " . DB_TABLE_PREFIX . "configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER', '4', 'Sort order of display.', '6', '2', now())");
 }
Esempio n. 2
0
 public function install()
 {
     parent::install();
     $data = array(array('title' => 'Display Tax', 'key' => 'MODULE_ORDER_TOTAL_TAX_STATUS', 'value' => 'true', 'description' => 'Do you want to display the order tax value?', 'group_id' => '6', 'set_function' => 'osc_cfg_set_boolean_value(array(\'true\', \'false\'))'), array('title' => 'Sort Order', 'key' => 'MODULE_ORDER_TOTAL_TAX_SORT_ORDER', 'value' => '3', 'description' => 'Sort order of display.', 'group_id' => '6'));
     OSCOM::callDB('Admin\\InsertConfigurationParameters', $data, 'Site');
 }