Sometime you need a small script to send a simple email. For example to warn a store owner that a import has failed. This code snippet shows you, in my opinion, the best way to send such email. Without bypassing all the Magento plugins that enable or disable emails and …
Out of the box Magento has no possibility to handle donations for charities. With the Magento 2 Experius Donation Product module it is very easy to add this function to your Magento 2 Webshop installation.
This post shows you how to create an csv file in a Magento 2 controller and return a download response.
In Magento 2 the best way to get a product collection is to use the product repository. Here is an example on how to get a product collection in a block class.
In some cases, i hope not to0 many, you want to get content from a static block in Magento 2. You can use the following code snippet in your block to get the static block info by identifier name.
A little blog on how to use the file-uploader.js uicomponent. Case: Let’s say you want customers to be able to upload a csv with products and qty to order.