I want product current stock. That’s why I have used below code. But every time I got the initial stock. I have changed the stock manually from magento 2 admin. But it shows the same. $stockManager = $objectManager->get('MagentoCatalogInventoryModelStockRegistry')->getStockItem($item->getId()); print_r($stockManager->getData()); { item_id: "8", product_id: "8", stock_id: "1", qty: "50.0000", min_qty: "0.0000", […]
Blog
I have been experiencing some physical issues with my MSI laptop. Firstly, the bottom-left corner of the frame has separated from the screen. This seemed to be the result of an increasingly loud cracking sound when opening and closing the laptop through its life. The best explanation I have seen […]
I created a scheduled task in Windows 7 that is supposed to be triggered when an event happens. Well, the event happened, and the action did not get performed? Does a scheduled task in Windows that is triggered by an event run continually? If so, should it get triggered if […]
Recently in firefox, I have strange margin around the page. What firefox settings responsible for this? And how to remove this margins.
I am adding a new 6TB “WD Black” Western Digital drive. It shows two 2 TB unallotted partitions. I have re-initialized both the partitions to GPT. It should have done the trick but it did not in my case. Restarted my computer but still I can’t get past the two 2 TB […]
After I turn off my computer my CPU fan continues to spin albeit at a slower RPM until I unplug the USB-C cable connected to the back of my monitor. I have also disconnected the power cable to the CPU and it still spins. Happy to add more details if […]
I have an event observer listening on checkout_cart_product_add_after which works when adding products to the cart from the product, category, and wishlist pages, but when adding products to the cart from the B2B requisition list that event is not fired. I haven’t been able to find anything as to why […]
I have a site that uses 1 column and 2 column layouts for category pages (some pages are 1 column, others are 2 column) I made a change to the catalog_category_view.xml to update the layout of the 1 column pages, but it didn’t have the intended effect on the 2 […]
Anyone have experience using the Magento’s bulk API async/V1/products. I tried using it with RabbitMQ but it was throwing error like connection time out after 3 seconds, I fixed that but still I’m getting exception Broken Pipe or Close Connection. Can anyone help on that. Thanks