Beispiel #1
0
 private function _loadEbayExcludedLocation()
 {
     $ebayRequest = new eBayRequest();
     $excludeLocation = $ebayRequest->getExcludeShippingLocation();
     foreach ($excludeLocation as $key => $value) {
         $excludeLocation[$key]['excluded'] = 0;
         $excludeLocation[$key]['location'] = pSQL($value['location']);
         $excludeLocation[$key]['description'] = pSQL($value['description']);
         $excludeLocation[$key]['region'] = pSQL($value['region']);
     }
     if ($this->isVersionOneDotFive()) {
         Db::getInstance()->insert('ebay_shipping_zone_excluded', $excludeLocation);
     } else {
         foreach ($excludeLocation as $location) {
             Db::getInstance()->autoExecute(_DB_PREFIX_ . 'ebay_shipping_zone_excluded', $location, 'INSERT');
         }
     }
 }