The week on StackExchange #15 / 2016

Here’s the next update with hopefully interesting questions ans answers on StackExchange!

Magento 2

Open Questions

Magento 1

Software Design

This week something from programmers.stackexchange.com:

The week on StackExchange #14 / 2016

Here’s the next update, again only with new, hopefully interesting answers on Magento StackExchange.

Magento 2

Magento 1

Filtering Magento Collections: addFilter() vs. addFieldToFilter()

There was an interesting question on StackExchange recently that did not get much attention:

Magento collection has two methods for filtering:

  1. Varien_Data_Collection_Db::addFieldToFilter
  2. Varien_Data_Collection::addFilter

Seems that both methods add where condition to Zend_Db_Select. And what advantages does addFilter bring? When should I use it instead of addFieldToFilter ?

I had to dig a bit into addFilter myself because I was only familiar with addFieldToFilter and here is what I found:

Link to the question: addFilter vs addFieldToFilter

Continue reading “Filtering Magento Collections: addFilter() vs. addFieldToFilter()”

The week on StackExchange #12 / 2016

Here’s the next update, this time only with new, hopefully interesting answers on Magento StackExchange.

Magento 2

Magento 1

Design Patterns for Framework Agnostic Extensions/Plugins – Autoloading

Part 5 of my blog series on integer-net.com about framework independent code is out: Using Advanced Autoloading. This one is only relevant for the integration of legacy applications that do not use composer autoloading yet (Magento 1).

Previous Parts

  1. Introduction: Shared Code For Magento 1 and Magento 2 Extensions
  2. Accessing Configuration Data
  3. Using Dependency Injection
  4. Building Bridges
  5. Preparing Data For Output

The week on StackExchange #11 / 2016

Here’s the next update with new, hopefully interesting, questions and answers on StackExchange.

New Answers

New Questions

  • After a day of Magento 2 develoment with JavaScript, I shared the frustrating summary on Twitter, which attracted some attention:


    Looks like I am not alone with this experience but it’s not really how it is supposed to be. This lead me to the question Which compilation commands are needed in developer mode and when?

  • There seems to be a bug in certain Magento versions with order reports and timezones but I could not quite pin it down yet: Magento Reporting – Is it bucketing by UTC?

The week on StackExchange #10 / 2016

Here’s the next update with new, hopefully interesting, questions and answers on StackExchange.

New Answers

New Questions: