Multiple Address Checkout
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.
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.
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.
astormThe Magento object for interacting with customers (Mage_Customer_Model_Customer, alias customer/customer) has three address fetching methods, but you probably only want one of them. The first, and least useful, is getAddressCollection. You might think this method would return a Magento Address collection containing address objects [...]
astormProposed Methodology for Cleanly Altering the Admin Console DOM Output via Javascript
astormModel Resources and Multiple Database Support In response to my question. What do I Need to do with my Model Resources for the Magento 1.6 Release?
astormMagento Version: 1.6.rc1+ I just downloaded the release candidate for Magento 1.6, and I noticed a change that seemed like a regression, but a little digging made me realize it was something else. A lot of Magento developers (meaning me) like keeping their custom phtml files somewhere other than the the standard add/design/frontend file [...]
astormWherein I attempt to explain the theme fallback system to a Magento newbie on Stack Overflow
astormI’ve started creating single line observers like this <?php class Mycompany_Mymodule_Model_Observer { public function someMethod($observer) { Mage::helper('mycompany_mymodule/observer') ->someMethod($observer->getCustomer()); } } The logic is punted to a helper class. This way the helper receives only the objects it needs [...]
astormMagento Version: 1.5.1 If you’ve spent anytime with the Magento core controllers, you’re probably aware you can kick off an HTTP redirect with something like $this->_redirect('catalogsearch/term/popular/'); There’s two things about this you should be aware of. The _redirect method does not automatically halt [...]
astormWhen explaining the local.xml Layout file, you’ll hear Magento veterans (myself included) explain that local.xml is loaded last, so the updates there always “win”. This is true, to an extent, but there’s one big caveat to keep in mind. Layout Update XML Fragments are loaded and applied in order, by handle. That [...]
astormThere’s more sophisticated ways of logging and profiling SQL in Magento these days, but sometimes it’s still easier and quicker to drop down to the abstract Zend adapter and log your queries with a few discrete calls to Mage::Log Almost every INSERT, UPDATE, SELECT, and DELETE goes through the methods in [...]
astormCheckItOut @andkorolyov, in response to my question “Hey magento people, are there are any extensions (free/paid) that add Ajax features to the checkout page?”
astormWe have an extension that uses Ajax to change what shipping rates are shown in a weekly date/time grid @webshopapps, in response to my question “Hey magento people, are there are any extensions (free/paid) that add Ajax features to the checkout page?”
astormSome people in the Magento Community are getting antsy about the eBay acknowledgment. As with anything that’s out of my control, it’s a hope for the best, plan for the worst situation.
astormIn many programming languages, especially the less strictly typed ones, a common coding pattern starts to emerge. $thing = $this->getSomeThing(); if($thing) { //do something with the thing } Without a compiler to catch methods returning what they shouldn’t, a developer is forced to sanity check return values from methods before [...]
astormMagento’s form validation seems scary at first, but using it is actually quite easy. First, create for your form. <form action="<?php echo $this->getUrl('/some/route/thing');?>" id="theForm"> <input type="text" name="foo" id="foo" /> </form> Next, run this bit of javascript to turn your plain old form [...]
astormLots of kind souls helped me out on Twitter with this one. Some versions of Safari are stricter about setting cookies than others. Also, Magento sets the full cookie domain and path as well, which is where weird cookie bugs can lie. If you’re having trouble setting your session Magento (i.e. “Please Enable Cookies, you [...]
astorm