I have the following block of code that gets all active catalog rules: $catalog_rule_collection = $objectManager ->create('MagentoCatalogRuleModelRuleFactory') ->create() ->getCollection() ->addFieldToFilter('simple_action', 'by_percent') ->addIsActiveFilter(1); ->addFieldToFilter('simple_action', 'by_percent') filters results to catalog rules with a percentage discount. ->addIsActiveFilter(1) filters results to only activated catalog rules. This simply retrieves table data from the catalogrule table. […]
Yearly Archives: 2020
I’m a new hired developer for a company that is using Magento CE as their CMS. I’m trying to set up a local development environment and it’s telling me that I have to be authorized user on Magento Cloud account. When I log in to our Magento Cloud Account it […]
I would like to configure i3WM to hide a window’s title bar, iff it is the only window on its workspace. The configuration should probably look something like that: for_window [???] border pixel 0 However, I could not figure out the command criteria to select only single windows.
I am in an enterprise environment and I am trying to set the default apps on several systems by using a .bat script. This is what my script is doing, nothing complicated. @ECHO OFF dism /online /Import-DefaultAppAssociations:"%~dp0MyDefaultAppAssociations_Modified.xml" However, I have noticed that it works on some work stations on not […]
I have setup a lighttpd remote server that I want to run a python application using fastcgi. The application has a login with a backdoor. When I try to use it, I get an internal server error. In the lighttpd error log, I see: 2020-01-23 20:05:51: (mod_fastcgi.c.2702) FastCGI-stderr: paswd = […]
I have two hard drives, and one of them used to run Ubuntu. I have since removed Ubuntu from my second drive and have unified with my main one. I wanted to put both drives into one partition but have since found that doesn’t work, and now want to move […]
Now this may sound whimsical, but I want to know, can a batch script be made, that kills the Explorer.exe and it’s child processes forcibly and then successfully starts the Explorer.exe process again, without having to run that Batch script again? I tried the below code, but even after waiting […]
Pair Programming — a pair that’s greater than the sum of its parts. You may have heard about pair programming and wondered whether it was worth trying in your workplace. On the surface it sounds simple, but two developers sitting together are not all that it takes to achieve productive […]