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."; } Senzo Retro https://shop.messer-schleifen.tirol/Category/senzo-retro/type-atom 2026-11-05T19:58:28+00:00 MYOB GS-05 Bunkamesser, 16,50 cm 2026-01-22T14:51:39+00:00 2026-01-22T14:51:39+00:00 https://shop.messer-schleifen.tirolhttps://shop.messer-schleifen.tirol/index.php?option=com_hikashop&ctrl=product&task=show&cid=6438&name=gs-05-bunkamesser-16-50-cm&Itemid=102&category_pathway=168 <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6855.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce2013d70ea823afc910a3103ba-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce2013d70ea823afc910a3103ba"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das GS-05 Bunkamesser vereint japanische Präzision mit einem modernen, markanten Design. Die kantige Klingenform ist ideal für präzise Schnitte und kreative Küchenarbeit. Dank Ginsan-Stahl überzeugt das Messer durch außergewöhnliche Schnitthaltigkeit und gleichzeitig einfache Pflege – ideal für alle, die Wert auf Qualität und Ästhetik legen.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 179,00 €</td></tr></table> <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6855.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce2013d70ea823afc910a3103ba-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce2013d70ea823afc910a3103ba"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das GS-05 Bunkamesser vereint japanische Präzision mit einem modernen, markanten Design. Die kantige Klingenform ist ideal für präzise Schnitte und kreative Küchenarbeit. Dank Ginsan-Stahl überzeugt das Messer durch außergewöhnliche Schnitthaltigkeit und gleichzeitig einfache Pflege – ideal für alle, die Wert auf Qualität und Ästhetik legen.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 179,00 €</td></tr></table> GS-04 Kochmesser, 20 cm 2026-01-22T14:51:39+00:00 2026-01-22T14:51:39+00:00 https://shop.messer-schleifen.tirolhttps://shop.messer-schleifen.tirol/index.php?option=com_hikashop&ctrl=product&task=show&cid=6437&name=gs-04-kochmesser-20-cm&Itemid=102&category_pathway=168 <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6854.jpg"/></td><td><p>Das klassische Kochmesser GS-04 vereint Kraft und Präzision in einem Werkzeug. Die 20 cm lange Klinge aus Ginsan-Stahl bleibt extrem lange scharf, ist korrosionsbeständig und weniger anfällig für Ausbrüche. Ideal für Hobby- und Profiköche, die auf Qualität und Ästhetik setzen. Der achteckige Griff sorgt für sicheren Halt und stilvolles Handling.</p>Preis : 189,00 €</td></tr></table> <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6854.jpg"/></td><td><p>Das klassische Kochmesser GS-04 vereint Kraft und Präzision in einem Werkzeug. Die 20 cm lange Klinge aus Ginsan-Stahl bleibt extrem lange scharf, ist korrosionsbeständig und weniger anfällig für Ausbrüche. Ideal für Hobby- und Profiköche, die auf Qualität und Ästhetik setzen. Der achteckige Griff sorgt für sicheren Halt und stilvolles Handling.</p>Preis : 189,00 €</td></tr></table> GS-03 Santokumesser, 16,50 cm 2026-01-22T14:51:39+00:00 2026-01-22T14:51:39+00:00 https://shop.messer-schleifen.tirolhttps://shop.messer-schleifen.tirol/index.php?option=com_hikashop&ctrl=product&task=show&cid=6436&name=gs-03-santokumesser-16-50-cm&Itemid=102&category_pathway=168 <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6853.jpg"/></td><td><p>Das Santokumesser GS-03 bringt japanische Messertradition in deine Küche. Mit seiner breiten Klinge und dem ausgewogenen Design ist es ideal zum Schneiden, Zerkleinern und Wiegen von Gemüse, Fleisch und Fisch. Der Ginsan-Stahl garantiert eine außergewöhnliche Balance zwischen Schärfe, Härte und Korrosionsschutz – perfekt für tägliche Einsätze ohne aufwendige Pflege.</p>Preis : 176,00 €</td></tr></table> <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6853.jpg"/></td><td><p>Das Santokumesser GS-03 bringt japanische Messertradition in deine Küche. Mit seiner breiten Klinge und dem ausgewogenen Design ist es ideal zum Schneiden, Zerkleinern und Wiegen von Gemüse, Fleisch und Fisch. Der Ginsan-Stahl garantiert eine außergewöhnliche Balance zwischen Schärfe, Härte und Korrosionsschutz – perfekt für tägliche Einsätze ohne aufwendige Pflege.</p>Preis : 176,00 €</td></tr></table> GS-02 Universalmesser, 14,30 cm 2026-01-22T14:51:39+00:00 2026-01-22T14:51:39+00:00 https://shop.messer-schleifen.tirolhttps://shop.messer-schleifen.tirol/index.php?option=com_hikashop&ctrl=product&task=show&cid=6435&name=gs-02-universalmesser-14-30-cm&Itemid=102&category_pathway=168 <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6852.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce201117219a927d9147251775f-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce201117219a927d9147251775f"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das GS-02 ist das ideale Universalmesser für jeden Tag. Die Klinge aus rostfreiem Ginsan-Stahl kombiniert Härte, Schnitthaltigkeit und einfache Pflege – optimal für Obst, Gemüse, Fleisch und Fisch. Die feinkörnige Struktur des Stahls sorgt für eine Schärfe auf Profi-Niveau. Der ergonomische Griff im Retro-Look liegt sicher in der Hand.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 148,00 €</td></tr></table> <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6852.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce201117219a927d9147251775f-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce201117219a927d9147251775f"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das GS-02 ist das ideale Universalmesser für jeden Tag. Die Klinge aus rostfreiem Ginsan-Stahl kombiniert Härte, Schnitthaltigkeit und einfache Pflege – optimal für Obst, Gemüse, Fleisch und Fisch. Die feinkörnige Struktur des Stahls sorgt für eine Schärfe auf Profi-Niveau. Der ergonomische Griff im Retro-Look liegt sicher in der Hand.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 148,00 €</td></tr></table> GS-01 Schälmesser, 12,00 cm 2026-01-22T14:51:39+00:00 2026-01-22T14:51:39+00:00 https://shop.messer-schleifen.tirolhttps://shop.messer-schleifen.tirol/index.php?option=com_hikashop&ctrl=product&task=show&cid=6434&name=gs-01-schaelmesser-12-00-cm&Itemid=102&category_pathway=168 <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6851.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce2010a7257a2cbb03db49a11b2-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce2010a7257a2cbb03db49a11b2"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das kompakte Schälmesser GS-01 eignet sich perfekt für filigrane Küchenarbeiten wie das Schälen, Entkernen oder Schneiden kleiner Früchte. Die Klinge besteht aus hochwertigem Ginsan-Stahl (auch bekannt als Silver 3 Stahl), der für seine außergewöhnliche Schärfe, hohe Härte (59–61 HRC) und exzellente Korrosionsbeständigkeit bekannt ist. Der weiße Pakkaholzgriff verleiht dem Messer eine elegante Retro-Ästhetik und liegt angenehm in der Hand.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 134,00 €</td></tr></table> <table><tr><td><img src="https://shop.messer-schleifen.tirol/images/com_hikashop/upload/thumbnails/150x150/6851.jpg"/></td><td><div class="cms-block pos-2 cms-block-product-description-reviews position-relative"> <div class="cms-block-container"> <div class="cms-block-container-row row cms-row"> <div class="col-12" data-cms-element-id="019d25995ee57272aefb0d51b2642f37"> <div class="product-detail-tabs cms-element-product-description-reviews"> <div class="card card-tabs"> <div class="product-detail-tabs-content card-body"> <div class="tab-content"> <div id="description-tab-019cfce2010a7257a2cbb03db49a11b2-pane" class="tab-pane fade show active" role="tabpanel" aria-labelledby="description-tab-019cfce2010a7257a2cbb03db49a11b2"> <div class="offcanvas-body"> <div class="product-detail-description tab-pane-container"> <div class="product-detail-description-text" itemprop="description"> <p>Das kompakte Schälmesser GS-01 eignet sich perfekt für filigrane Küchenarbeiten wie das Schälen, Entkernen oder Schneiden kleiner Früchte. Die Klinge besteht aus hochwertigem Ginsan-Stahl (auch bekannt als Silver 3 Stahl), der für seine außergewöhnliche Schärfe, hohe Härte (59–61 HRC) und exzellente Korrosionsbeständigkeit bekannt ist. Der weiße Pakkaholzgriff verleiht dem Messer eine elegante Retro-Ästhetik und liegt angenehm in der Hand.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cms-block pos-3 cms-block-cross-selling position-relative"> <div class="cms-block-container"> </div> </div> <p> </p>Preis : 134,00 €</td></tr></table>