How to ask user for confirmation in Magento 2 console commandThis is a short post showing how to ask user for the confirmation when running Magento 2 console command. The typical use case for this is “Are you sure you want to continue?..#magento2 #snippet
Rendering the Magento 2 console command output as a tableHere is a quick example of how to render the Magento 2 console command output as a table. This can be useful in a number of situations where the resulting data is tabular...#magento2 #snippet
How to add custom "table-like" configuration field in Magento adminIn this post I’ll show you an example of adding custom “table-like” system configuration field in Magento admin. And by “table-like” I mean something like this:..#magento
Changing the trigger DEFINER in Magento database dumpIf you’re about to work with Magento EE 1.13+ & have the database dump on your hands, you might want to check & change the trigger DEFINER statements of it...#magento
Willow - free, responsive and minimalist Ghost blog themeLooking for a ghost blog theme? Here’s an open-source, responsive & minimalist theme I built for this exact blog. Get the Willow theme from my GitHub...#misc
Returning JSON response from Magento controller actionHere’s quick example of how to return JSON response from Magento controller action. Assuming you have already created appropriate XML configuration and controller class/file, just add the following code to your action:..#magento #snippet
Add custom product, category and CMS page tabs in Magento adminAdding custom product, category or CMS page tabs in Magento admin can be challenging task if you haven’t done it before and do not know where to start...#magento
Hosting Ghost blog with Nginx - config example with www redirect and SSL by LetsEncryptHere’s a sample Nginx configuration for Ghost blogging platform, that includes: 1) standard proxy configuration to successfuly host Ghost blog; 2) redirect “www” to “non-www” website; 3) use “https” over “http” website;..#server #snippet
Fix the locale warning on a new DigitalOcean dropletIf you’ve just created a new Ubuntu 14.04 DigitalOcean droplet and are installing or upgrading some packages, you’ll notice this annoying warning being shown in console:..#server
Programmatically change store config to avoid rewrites in MagentoHere’s a nice strategy to achieve a desired functionality in Magento while completely avoiding class rewrites - programmatically changing the store configuration via observers prior to core code execution...#magento