private function runHelloCashPull(&$messages) { if (!defined('HELLOCASH_SYNC_IN_PROGRESS')) { define('HELLOCASH_SYNC_IN_PROGRESS', true); } $token = trim($this->params->get('api_token', '')); if (empty($token)) { $messages[] = "FEHLER: Kein API-Token konfiguriert."; return; } $db = JFactory::getDbo(); // 1. Auto-Mapping ausführen $this->runBulkAutoMapping($token, $db, $messages); // 2. Alle Mappings aus der DB laden (product_id => hellocash_id) $query = $db->getQuery(true) ->select(array($db->quoteName('product_id'), $db->quoteName('hellocash_id'))) ->from($db->quoteName('#__hikashop_hellocash_map')); $db->setQuery($query); $mappings = $db->loadObjectList(); if (empty($mappings)) { $messages[] = "Keine verknüpften Artikel vorhanden."; return; } $hcToHikaMap = array(); foreach ($mappings as $m) { $hcToHikaMap[(int)$m->hellocash_id] = (int)$m->product_id; } $updatedCount = 0; $headers = array("Authorization: Bearer " . $token, "Accept: application/json"); // 3. Bestände seitenweise von helloCash abrufen (100 Artikel pro Request) for ($page = 1; $page <= 25; $page++) { $url = "https://api.hellocash.business/api/v2/articles?limit=100&page=" . $page; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode == 429) { usleep(1500000); $page--; continue; } if ($httpCode != 200 || empty($response)) { break; } $data = json_decode($response, true); $articles = isset($data['data']) ? $data['data'] : (is_array($data) ? $data : array()); if (empty($articles)) { break; } foreach ($articles as $art) { $hcId = isset($art['id']) ? (int)$art['id'] : 0; if ($hcId <= 0 || !isset($hcToHikaMap[$hcId])) { continue; } $stock = null; if (isset($art['stocks'])) $stock = (int)$art['stocks']; elseif (isset($art['stock'])) $stock = (int)$art['stock']; if ($stock !== null) { $pId = $hcToHikaMap[$hcId]; $updateQuery = $db->getQuery(true) ->update($db->quoteName('#__hikashop_product')) ->set($db->quoteName('product_quantity') . ' = ' . $stock) ->where($db->quoteName('product_id') . ' = ' . $pId); $db->setQuery($updateQuery); try { $db->execute(); $updatedCount++; } catch (Exception $e) {} } } if (count($articles) < 100) { break; } usleep(100000); } // Kompakte Erfolgsmeldung ohne unendliche Einzelausgaben $messages[] = "SYNC FERTIG: Insgesamt " . $updatedCount . " Artikelbestände von helloCash nach HikaShop synchronisiert."; } KOCHMESSER

Ni-Serie

94,00 € GS-8 Schälmesser, 7cm
9,90 € GS-80/CDU Appetizer Löffel GLOBAL
96,00 € GS-83 Gemüsemesser, 13cm
60,00 € GS-89 Universalmesser, 13 cm
106,00 € GS-90 Santokumesser Kulle, 13cm
109,00 € GS-91 Gemüsemesser Kulle, 14cm
108,00 € GS-92 Kochmesser, 13cm Kulle
89,00 € GS-94 Sparschäler mit 3 Wechselklingen (Glatt, Verzahnt, Julienne)
14,00 € GS-94/JB Ersatzklinge Julienne für GS-94 Sparschäler
11,00 € GS-94/PB Ersatzklinge Glatt für GS-94 Sparschäler
11,00 € GS-94/SB Ersatzklinge verzahnt für GS-94 Sparschäler
89,00 € GS-95R Käsemesser, 10,5 cm
94,00 € GS-9L Tomatenmesser, 8cm
47,00 € GSF-15 Schälmesser, 8cm
47,00 € GSF-16 Schälmesser, 6 cm
47,00 € GSF-17 Tourniermesser, 6cm
39,00 € GSF-18 Krabben-/Hummermesser, 5 cm Nicht vorrätig
66,00 € GSF-22 Putzmesser, 11 cm
66,00 € GSF-23 Steakmeser, 11cm
85,00 € GSF-24 Universalmesser, 15 cm
54,00 € GSF-31 Putzmesser, 8cm
54,00 € GSF-33 Schälmesser, 6cm
54,00 € GSF-34 Tourniermesser, 6cm
49,00 € GSF-46 Schälmesser, 8 cm
67,00 € GSF-49 Universalmesser, 11 cm
86,00 € GSF-50 Universalmesser, 15 cm

GKB-Serie

219,00 € GKB-51 Messerblock oval, 14 Schlitze
193,00 € GKB-52 Messerblock oval, Edelstahl satiniert
159,00 € GKB-52/CB Messerblock oval, schwarz
159,00 € GKB-52/CR Messerblock oval, rot
159,00 € GKB-52/CW Messerblock oval, weiß
489,00 € GKB-52/ST Messerblockset 6-teilig ( GKB-52, G-2, GS-5, GS-11. GS-38, GS-61R)

GKG-Serie

9,80 € GKG-101 Klingenschutz, 21cm
12,00 € GKG-102 Klingenschutz
15,00 € GKG-103 Klingenschutz

GKS-Serie

109,00 € GKS-210 Küchenschere, 21 cm
Ergebnisse 241 – 276 von 276