Magento Quickies

All the Non-Trivial Magento Trivia

0 notes

Widget Data and How Hard Can It Be?

This Stack Overflow question is a nice example of how something that seems simple (querying for and updating a widget instance’s data paramaters) can be harder than you think. Most Magento projects go off the rails because someone assumes something like this is easy, and then modern company culture doesn’t allow them to admit it and they’re forced into hastily writing a bunch of inefficient code. Kudos to the asker in that question for backing off their solution.

This is also interesting because the whole “store a serialized object in a column” thing is the opposite of Magento’s older EAV approach.

Filed under php magento widget