public static function loadEbayExcludedLocations($id_ebay_profile) { $ebay_request = new EbayRequest(); $excluded_locations = $ebay_request->getExcludeShippingLocations(); foreach ($excluded_locations as &$excluded_location) { foreach ($excluded_location as &$field) { $field = pSQL($field); } $excluded_location['excluded'] = 0; $excluded_location['id_ebay_profile'] = intval($id_ebay_profile); } if (version_compare(_PS_VERSION_, '1.5', '>')) { Db::getInstance()->insert('ebay_shipping_zone_excluded', $excluded_locations); } else { foreach ($excluded_locations as $location) { EbayShippingZoneExcluded::insert($location); } } }