HowTo: Join 2 tables in Magento 2
posted on
02/07/2018
Recently I faced the situation where I needed the information of a second table in my collection and the first thought that crossed my mind was let's rewrite the collection to add my on stuff but... is that really the right approach?
First, by rewriting the core collection class I am going to af...
Show Success, Error, Warning messages in Magento 2
posted on
12/06/2018
To be able to output warnings, error and notice messages in our modules we have to use the following interface \Magento\Framework\Message\ManagerInterface
.
The best way to use it is through Dependency Injection in the constructor as follows: