When using the customer_account_create event, the session model in my class is not able to return the customer ID using $this->customerSession->getId();. However, for testing purposes, when using the customer_account_edited observer event, the session is returning the correct ID of the customer. I am guessing that the session is not fully […]
Blog
In macOS, using command+right/left will go to the beginning or end of the current line of text. This was extremely useful when typing or coding in general, but in Windows, Alt+Left/Right has totally different behavior depending on the app. Is there any way to globally change this to only be […]
I write a lot of org-mode notes in several files in a git repo. I want to be able to use git log -p to support two types of queries: See what I wrote on a given date, or a given range of dates. Find when I wrote a given […]
Is it possible to set the timezone of an android device (either a physical device or and emulator) to a timezone that doesn’t actually exist (for instance, GMT+00:03 or GMT-500:00)? I tried reading the docs, and it seems like the data type supports that in theory, but I have no […]
At my job, I work with an Excel spreadsheet that has a few columns with customer information, most importantly their state, and then another 10+ columns representing each warehouse we have, with the current available inventory of the product the customer is trying to purchase. There is one column between […]
I have my OpenVPN connection fully configured and working with a US based dedicated IP. I am testing to ensure I don’t have any leaks but finding that my timezone on my router is still being set to my actual timezone, rather than my the timezone where the VPN connection […]
in magento in MagentoQuoteModelQuoteItemProcessor.php $candidate->getCartQty() is fetching wrong quantity for some products I searched the whole codebase for “getCartQty()” and I couldn’t find it ! it is supposed to be coming from “MagentoCatalogModel Product::getCartQty” but it is not there! Where is it?
I am confused between is_salable and is_in_stock field. in product listing page I print $product object by $product->getData() and when I print this data there is a field called is_salable I put somewhere condition for product isinstock or outof stock so can I check the product with like this condition […]