MHSchmidt Posted June 7, 2019 Report Share Posted June 7, 2019 Hallo zusammen, ich bin gerade dabei auf die Shop-API umzustellen (würde ich gern!!!). Ich teste den Zugriff mit Postman. Allerdings liefert mir nur die function "function": "getManufacturers", ein Ergebnis. Die "function": "getCategories", und "function": "getArticles", liefern bei mir ein leeres Result - empty. Version 6.1.1 - Multishop, aktuelle xtcAPI. { "function": "getManufacturers", "paras": { "user": "*****", "pass": "*****", "start":0, "size":50, "extNumberRange":0 } } funktioniert. { "function": "getCategories", "paras": { "user": "*****", "pass": "*****", "start":"1", "blocksize":"10" } } gibt nichts zurück. ????? Vielen Dank im Voraus. Michael Ich hab jetzt folgendes ermittelt. Es liegt an dem Aufruf von // Infos über alle stores holen $stores = $store_handler->getStores(); in getArticles.php... Ich nehme mal an, dass das die Funktion in class.multistore.php ist. function getStores() { global $db, $xtPlugin; $where = ''; ($plugin_code = $xtPlugin->PluginCode(__CLASS__ . ':getStores_top')) ? eval($plugin_code) : false; static $cache = array(); $hash = $where; //crc32($where); if(!array_key_exists($hash, $cache)) { $rs = $db->CacheExecute("SELECT * FROM " . TABLE_MANDANT_CONFIG . " " . $where . " ORDER BY shop_id ASC"); $data = array(); while (!$rs->EOF) { $data[] = array( 'id' => $rs->fields['shop_id'], 'text' => $rs->fields['shop_ssl_domain'], 'status' => $rs->fields['shop_status'] ); $rs->MoveNext(); } $rs->Close(); $cache[$hash] = $data; } $data = $cache[$hash]; // to be compatible for old code using the next hook ($plugin_code = $xtPlugin->PluginCode(__CLASS__ . ':getStores_bottom')) ? eval($plugin_code) : false; return $data; } to be continue..... Quote Link to comment Share on other sites More sharing options...
MHSchmidt Posted June 12, 2019 Author Report Share Posted June 12, 2019 Hallo zusammen, hier mal ein Workaround für die Problematik. Leider ist nicht bei allen Funktionen in der API der Verweis auf $store_handler vorhanden. Ich hab jetzt den Verweis in den Funktionen getCategories und setArticle wie folgt eingefügt: global $db, $store_handler; Damit bekomme ich auch die Daten zurück!!! Ich muss leider immer wieder feststellen, dass dieser Shop eine Bananen-Entwicklung ist. Auch ist der Support dafür unter aller.... Ich wurde mehrmals mit der lappidaren Bemerkung "Bei unseren Tests ist kein Fehler aufgetreten..." abgespeist. Super... Kann ich nicht nachvollziehen. Bis zum nächsten mal!!! Quote Link to comment Share on other sites More sharing options...
exxos Posted June 24, 2019 Report Share Posted June 24, 2019 Hallo, könntest du kurz sagen in welcher Version der API und des Shopes du die Probleme hattest? Danke im Voraus Quote Link to comment Share on other sites More sharing options...
MHSchmidt Posted June 27, 2019 Author Report Share Posted June 27, 2019 Die Version, die ich nutze, ist die 6.03. Jetzt gibt es aber schon seit kurzem die 6.04. Habe ich aber noch nicht installiert. z.Z. funktioniert meine Version mit den vorgenommenen Änderungen. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.