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 […]
Monthly Archives: February 2020
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 […]
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 […]
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 have the following libc6 dependency problem in Debian 9.12 stretch. sudo apt install libc6-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution […]
I have a dual booted andriod-windows 10 tablet. Recently to get come space on windows I deleted the Android files through windows mode . After sometime I have switched to Android just to see what happen . Now it is in bootloop . All I want is to switch to […]