Magento 2 product shows “In Stock” with qty=0 – MSI and legacy stock inconsistency
A product showed “In Stock” on the product page despite actually being out of stock. Customers placed orders for a product that could not be fulfilled. The error only appeared when creating a shipment. The problem affected configurable products with MSI. Fix time: 4 hours.
- Published in Magento / Adobe Commerce
Docker Compose for Magento 2 without DDEV – custom stack PHP 8.4, MariaDB, Redis, OpenSearch
DDEV is a convenient tool but not the only way. Your own Docker Compose stack gives full control: exactly the service versions you need, custom network, CI/CD integration, deployable to any server without changes. I show a minimal but complete stack for Magento 2 with PHP 8.4, MariaDB 10.6, Redis, OpenSearch and nginx.
- Published in Środowiska
Magento 2 wrong prices in multi-store – base currency and price rule cache
A multi-store shop (5 stores, 3 currencies) started showing wrong prices – the euro price appeared on the PLN store and vice versa. The problem appeared after adding a new store and only affected products with price rules. Fix time: 6 hours.
- Published in Magento / Adobe Commerce
Decorator pattern – dynamic behaviour, PHP, Magento 2 plugin system
The Decorator pattern allows you to dynamically add behaviour to an object without modifying its class and without inheritance. Each decorator wraps the original object and extends or modifies its behaviour. In PHP and Magento 2 it is one of the most frequently used patterns – Magento’s plugin system is effectively a Decorator implemented by the DI framework.
- Published in Wzorce projektowe
