Magento2 – Keine Produkt Preise im Detail, Kein Warenkorb-Button
Produkte werden nicht als „Verkaufbar“ erkannt und können nicht in den Warenkorb gelegt werden.
Problem ist die falsche Abfrage des Stock-Status pro Website.
Datei: <magento>/vendor/magento/module-catalog-inventory/Model/Configuration.php
public function getDefaultScopeId() { // TODO: should be fixed in MAGETWO-46043 // "0" is id of admin website, which is used in backend during save entity return 0; } Lösung: public function getDefaultScopeId() { // TODO: should be fixed in MAGETWO-46043 // "0" is id of admin website, which is used in backend during save entity return $this->storeManager->getWebsite()->getId(); }