Categories


Recent Posts


Archives


Casting Image Helpers

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

Magento Caches Database Columns

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

Consistant Config Node Naming

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

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

Customer Confirmation

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
email hidden; JavaScript is required