Perils of Caching
Perils of Caching If you’re trying to reuse Magento block classes that have caching enabled, there’s a few things you’ll want to be aware of.
astormBelow you'll find all the Uncategorized articles on the site, followed by a chronological listing of the same. You may also browse the 8 series directly via the following links. Miscellaneous Magento Articles, SugarCRM for PHP MVC Developers, Magento 2: Advanced Javascript, Magento 2 UI Components, Accelerated Mobile Pages, Pestle, Sylius for Magento and PHP Developers, and, Containers, Containers, Containers.
Perils of Caching If you’re trying to reuse Magento block classes that have caching enabled, there’s a few things you’ll want to be aware of.
astormThis one might be greek to people who haven’t read No Frills Magento Layout, but I’d like it spelled out so I don’t have to think about it again. (If you don’t own a copy, there are worse ways to learn Magento). When Magento is loading handles from the Layout Update XML Files into the package layout, these updates [...]
astormCasting Image Helpers Image helper objects are tricky. Instead of having a “get image url” function, you cast them as a string to get the URL, or more commonly, let PHP cast them in echo statements automatically. However, if you’re not familiar with PHP’s casting rules, it look like the init method returns a [...]
astormSee how I've replaced last week with recently? Marketing genius there.
astormTake a look at this screenshot You’ll see this dialog when your login credential are incorrect. Now, take a look at this screen Same login screen, but without the Invalid Username or Password message. There’s a class of Magento deployment bugs related to sessions and cookies that prevent users from logging into the [...]
astormWhen you’re creating custom Magento models, it’s common to to add and remove fields to and from a database table during development before finalizing a set of columns for the setup resource/migration file. One thing to keep in mind while you’re doing this is that Magento will cache the list of table columns each model [...]
astormIn an out of the box installation, Magento will use a Zend_Mail object to send all its email. If you’re debugging something mail related, jumping directly down to the send method lib/Zend/Mail.php can be extremely useful.
astormSetting a Starting Order Number An oldie but goodie for people in the Magento community. Ashley Schroder goes over how to set a starting/ending order number that isn’t 100—0001.
astormDefault Theme in Enterprise Edition A quick heads up for anyone who’s used to Community edition but switching to enterprise. The default theme (NOT the base design package) is set to enterprise during the installation process. Can create subtle behavior changes when you’re following tutorials aimed at CE.
astormMissed you last week, which just means more to recap this week!
astormWhen you first have that ah-ha moment with the Magento System Configuration creator, your first instinct is to start creating a lot of extra configuration values for your features and modules. It’s easy enough to think “hey, I’d like to add another email address to the Store Email Addresses section” There’s [...]
astormAdding Customer Attributes Nice writeup of all the various bits you you need to flip when setting up a public attribute for the Magento customer object
astormHalf FYI for new Commerce Bug users, half shameless plug. This screencast covers the programable access control list features of Commerce Bug. That is, it shows you how you can hide Commerce Bug from certain users (Managers!) and show it to others (Developers!) (Source: https://www.youtube.com/)
astormWhat IS Magento Mobile Great writeup of what Magento Mobile is, from a developer point of view.
astormMagento Email Template If Statements Nice concise rundown of where Magento implements conditional logic in templates.
astormRemoving Cache Invalidation Notices on Product Save
astormThis one’s a little un-intuitive. At first. There are times where you’ll want to programmatically check if a customer is confirmed. To do this you’d instantiate a customer object like this $customer = Mage::getModel('customer/customer')->getCollection() ->addFieldToFilter('entity_id','197') ->getFirstItem(); or [...]
astorm