$err->out('Keine Verbindung zum Shop', true);
    exit;
}
$max = 100;
$artikel = $erp->getParts($pricegroup, $shopnr, $start, $max);
$lang = $shop->getLang("de");
$cnt = 0;
$errors = 0;
if ($api != 'cli') {
    ob_start();
}
$err->out("Artikelexport für Shop {$shopnr}", true);
if ($artikel) {
    foreach ($artikel as $row) {
        $lastpartnr = $row['partnumber'];
        $rc = $shop->saveArtikel($row, "de", $lastpartnr);
        if ($rc) {
            $cnt++;
            if ($cnt % 10 == 0) {
                $err->out(".");
            }
        } else {
            $errors++;
        }
    }
}
$err->out('', true);
if ($counter > 0) {
    $anzahl = $counter * $max + $cnt;
} else {
    $anzahl = $cnt;