settings['status'])) return; return array( 'title' => $this->name, 'options' => array( array( 'id' => 'option_1', 'icon' => $this->settings['icon'], 'name' => 'Option 1', 'description' => 'This is the description for option 1', 'fields' => '', 'cost' => $this->settings['fee_1'], 'tax_class_id' => $this->settings['tax_class_id'], 'exclude_cheapest' => false, ), array( 'id' => 'option_2', 'icon' => $this->settings['icon'], 'name' => 'Option 2', 'description' => 'This is the description for option 2', 'fields' => '', 'cost' => $this->settings['fee_2'], 'tax_class_id' => $this->settings['tax_class_id'], 'exclude_cheapest' => false, ), ), ); } public function settings() { return array( array( 'key' => 'status', 'default_value' => '1', 'title' => language::translate(__CLASS__.':title_status', 'Status'), 'description' => language::translate(__CLASS__.':description_status', ''), 'function' => 'toggle("e/d")', ), array( 'key' => 'icon', 'default_value' => '', 'title' => language::translate(__CLASS__.':title_icon', 'Icon'), 'description' => language::translate(__CLASS__.':description_icon', 'Web path of the icon to be displayed.'), 'function' => 'input()', ), array( 'key' => 'fee_1', 'default_value' => '10', 'title' => 'Fee 1', 'description' => 'This is the fee for option 1', 'function' => 'decimal()', ), array( 'key' => 'fee_2', 'default_value' => '10', 'title' => 'Fee 2', 'description' => 'This is the fee for option 2', 'function' => 'decimal()', ), array( 'key' => 'tax_class_id', 'default_value' => '', 'title' => language::translate(__CLASS__.':title_tax_class', 'Tax Class'), 'description' => language::translate(__CLASS__.':description_tax_class', 'The tax class for the shipping cost.'), 'function' => 'tax_classes()', ), array( 'key' => 'priority', 'default_value' => '0', 'title' => language::translate(__CLASS__.':title_priority', 'Priority'), 'description' => language::translate(__CLASS__.':description_priority', 'Process this module by the given priority value.'), 'function' => 'int()', ), ); } } ?>