sanitize_text_field($_POST['enabled']), 'dispatcherCountry' => sanitize_text_field($_POST['dispatcherCountry']), 'dispatcherZipcode' => sanitize_text_field($_POST['dispatcherZipcode']), 'countries_availability' => sanitize_text_field($_POST['countries_availability']), 'googleMapsKey' => sanitize_text_field($_POST['googleMapsKey']), 'weightUpperLimit' => sanitize_text_field($_POST['weightUpperLimit']), 'freeShippingUpperLimit' => sanitize_text_field($_POST['freeShippingUpperLimit']), 'acsCompanyID' => sanitize_text_field($_POST['acsCompanyID']), 'acsCompanyPassword' => sanitize_text_field($_POST['acsCompanyPassword']), 'acsUserID' => sanitize_text_field($_POST['acsUserID']), 'acsUserPassword' => sanitize_text_field($_POST['acsUserPassword']), 'acsApiKey' => sanitize_text_field($_POST['acsApiKey']), 'acsClientId' => sanitize_text_field($_POST['acsClientId']), 'pricing' => [ 'same_city' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['same_city']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['same_city']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['same_city']['costPerKg']), ], 'island' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['island']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['island']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['island']['costPerKg']), ], 'region' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['region']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['region']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['region']['costPerKg']), ], 'overland' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['overland']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['overland']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['overland']['costPerKg']), ], 'internal_cyprus' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['internal_cyprus']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['internal_cyprus']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['internal_cyprus']['costPerKg']), ], 'cyprus' => [ 'baseCost' => sanitize_text_field($_POST['pricing']['cyprus']['baseCost']), 'baseCostKgLimit' => sanitize_text_field($_POST['pricing']['cyprus']['baseCostKgLimit']), 'costPerKg' => sanitize_text_field($_POST['pricing']['cyprus']['costPerKg']), ], ] ]; update_option('woocommerce_acs-points-plugin_settings', $postData); $httpResponse = AcsPointsPlugin::fetch_points_json(); echo '
Data updated successfully.