i’m new to magento, not programming. can someone explain why the following code returns a different result depending on where it’s called? $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollectionFactory'); $collection = $productCollection->create(); $sql = $collection->setStore(1) ->addCategoriesFilter(['in' => 11]) ->addAttributeToFilter('brand', array('eq' => 5460)) ->getSelect(); echo $sql; returns this when called from within […]
Daily Archives: April 28, 2020
is it possible to upload the only price of the product via csv file? I tried to upload the new price with the sku number of the product and update price but it showing me several errors like for some product name should be in the list and for some […]
I know for a fact that traceroute in Linux should also reverse lookup the IPs to their hostname but on my pc (running Arch Linux) it doesn’t while on my Raspberry Pi the same command (issued from the same network, so the hops are the same) it does. The machine […]
I saw that this has been asked a few times, but my case is particular. I have a Thinkpad Latptop that has a useless button that I can repurpose to launch an app with a simple registry tweak. So I have an app that converts my DirectInput joysticks into Xinput, […]
In Notepad++, it is possible to use this kind of expression in the “Replace” box: (?{1}{$1}n:) This means if first group matches, replace by first group followed by new line, else replace by empty string. Is this also possible in Sublime Text 3, and if yes, what is the exact […]
I’m another user going around this merry-go round again. I purchased a Synology NAS DS718+, installed Plex and Docker (calibre-web-server), and have found the NAS is never sleeping. After looking at Synology’s own advice for Hibernation issues, I stopped Plex & Docker packages, and unplugged the network cable. This (i.e. […]
I am using a pivot chart that has a combo graph. On there I have 5 sets of data, and using bars for 3 of those data sets and line for 2 of those sets. When I select only 1 of the 4 months on my chart, the lines disappear. […]