private function postProcess($skip = array('tab', 'btnSubmit')) { $data = $_POST; //Configuration::updateValue(self::CONST_PREFIX.Tools::strtoupper('delivery_time'), self::$defaultValues['DELIVERY_TIME']); //This save delivery times to database, if you wanna edit this remove this line and uncomment lines in configure.tpl collector foreach ($data as $name => $value) { if (in_array($name, $skip)) { continue; //Skip not infomative fields } if (is_array($value)) { $value = serialize(Tools::getValue($name)); } else { $value = Tools::getValue($name); //if array so serilizse it } Configuration::updateValue(self::CONST_PREFIX . Tools::strtoupper($name), $value); } $carrier = new Carrier(); $id_shop = null; if ($carrier->isLangMultishop()) { $id_shop = Context::getContext()->shop->id; } $file = Tools::fileAttachment('carrier_post_price'); if ($file !== null) { DpdDeliveryPrice::importFromCsv($file, (int) Configuration::get('COURIERSERVICE_CARRIER_ID'), $id_shop); } $file = Tools::fileAttachment('pickup_post_price'); if ($file !== null) { DpdDeliveryPrice::importFromCsv($file, (int) Configuration::get('DELIVERYPOINTS_CARRIER_ID'), $id_shop); } }