This 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 [...]
astorm
Casting 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 [...]
astorm
See how I've replaced last week with recently? Marketing genius there.
astorm
Take 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 [...]
astorm
When 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 [...]
astorm
In 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.
astorm
Setting 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.
astorm
Default 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.
astorm
Missed you last week, which just means more to recap this week!
astorm
When 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 [...]
astorm
Adding 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
astorm
Half 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/)
astorm
What IS Magento Mobile Great writeup of what Magento Mobile is, from a developer point of view.
astorm
MageTool If you can get through the standard pear wrestling that’s required. MageTool’s a great utility to have in your pocket. Command line access to common Magento tasks.
astorm
Magento Email Template If Statements Nice concise rundown of where Magento implements conditional logic in templates.
astorm
Removing Cache Invalidation Notices on Product Save
astorm
This 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
Magento Version: 1.5.0.1 Magento’s multiple address checkout doesn’t actually create a single order with multiple addresses. Instead, it creates an order in the system for each different address you’re shipping to.
astorm