Bepado - Pluginänderung

Hallo, wir setzen Bepado ein und haben das Problem das die Artikel keinen Lagerbestand haben. Von Bepado wird dies nun als „nicht auf lager“ ausgegeben. Dies soll in den kommenden Updates gefixt bzw. einstellbar gemacht werden. Nun wollten wir vorübergehend manuell im Plugin eine Änderung machen um einfach einen positiven Bestand zu übermitteln. Hat jemand eine Idee wie man dies im Plugin manuell ändern kann. Bzw. kennt jemand die korrekte Stelle? Danke

Bevor Du das Plugin veränderst, wie wäre es, einfach den Bestand anzuheben? UPDATE s\_articles\_details SET instock = 100

das geht leider nicht. Der Kunde verwendet die Minus-Buchung als Statistik. Daher können wir dies nicht ändern. Die Idee ist ja an Bepado einfach ein positiver Bestand zu melden. /engine/Shopware/Plugins/Default/Backend/SwagBepado/Components/ProductQuery/LocalProductQuery.php /\*\* \* @param $row \* @return Product \*/ public function getBepadoProduct($row) { $row = $this-\>prepareCommonAttributes($row); if (!empty($row['shopId'])) { throw new NoLocalProductException("Product {$row['title']} is not a local product"); } // add default export category if (empty($row['categories'])) { $defaultExportCategory = $this-\>configComponent-\>getConfig('defaultExportCategory'); if ($defaultExportCategory) { $row['categories'][] = $this-\>configComponent-\>getConfig('defaultExportCategory'); } } $row['url'] = $this-\>getUrlForProduct($row['sourceId']); $row['images'] = $this-\>getImagesById($row['localId']); if ($row['deliveryWorkDays']) { $row['deliveryWorkDays'] = (int)$row['deliveryWorkDays']; } else { $row['deliveryWorkDays'] = null; } unset($row['localId']); if ($row['attributes']['unit'] && $row['attributes']['quantity'] && $row['attributes']['ref\_quantity']) { //Map local unit to bepado unit if ($row['attributes']['unit']) { $unitMapper = new UnitMapper($this-\>configComponent, $this-\>manager); $row['attributes']['unit'] = $unitMapper-\>getBepadoUnit($row['attributes']['unit']); } $intRefQuantity = (int)$row['attributes']['ref\_quantity']; if ($row['attributes']['ref\_quantity'] - $intRefQuantity \<= 0.0001) { $row['attributes']['ref\_quantity'] = $intRefQuantity; } } else { unset($row['attributes']['unit']); $row['attributes']['quantity'] = null; $row['attributes']['ref\_quantity'] = null; } $product = new Product($row); return $product; } Hier sollte die richtige Stelle sein. Aber bin mir nicht ganz sicher.

Dann vielleicht einfach den Bestand temporär erhöhen: UPDATE s\_articles\_details SET instock = instock + 1000 Wenn das Plugin gefixed ist einfach: UPDATE s\_articles\_details SET instock = instock - 1000