Blog
I’m not saying this is a good idea, but it’s an idea. 😉 Problem: array in PHP does not communicate intent well, especially it’s not clear if it’s a list or a hash map. Solution: Run this: use ArrayObject as dict; use SplDoublyLinkedList as dlist; // Better name? use SplFixedArray […]
I don’t want to load the product to get the product type. How could I get the product type by id? Today I’m using the get product type by SKU using the interface: MagentoInventoryCatalogApiModelGetProductTypesBySkusInterface Using: $this->getProductTypeBySku->execute([$item->getSku()])
This is a regarding a Magento 2.3.3 running on Digital Ocean’s server 4GB memory droplet, which should be plenty as it is the only thing hosted on there. However, I have observed since upgrade to 2.3.3 from 2.3.0, there are some instability in memory usage which then leads to the […]
We have a custom module that executes a php script. When running the script through an observer event, the script runs without a problem. When running the script through Cron, the script runs but does not work correctly. In the script, there is reference to a file in the magento […]
I’m using Magento 2 with Moloni plugin, and I need that the invoice have the free value but if I’m not wrong when it’s free it does not send the data so it does no appear in the invoice, if I define a value it works just fine but when […]