Magento 2 Profiler There’s still a lot of work to be done before Magento 2 is ready for general release, and a lot of that work will involve performance tuning. The old UI for enabling/disabling the built in profiler is gone, but this Stack Exchange answer from Marko Martinović tells you how to enable it. (a MAGE_PROFILER server [...]
astorm
Two Vagrant boxes for the newly released Magento 2 beta. The first is maintained by Rolando Granadino (beeplogic to Twitter folks), and is a fully featured opinionated box, with puppet provisioning, web grind for xDebug profiling, and git submodules for project dependencies. The second is a lightweight affair from Alan Kent, Magento [...]
astorm
Configuration Gaslighting Checklist A quick Stack Overflow answer from yours truly that covers what to do when you think Magento’s gaslighting you on configuration values you’re sure you’ve changed.
astorm
I needed to grab a few category names when all I had were the category IDs $categories = Mage::getModel('catalog/category')->getCollection() ->addAttributeToSelect('name') ->addFieldToFilter('category_id', array('in'=>$product['category_ids'])); Can you spot the error? PHP complained with the following error Fatal error: Call [...]
astorm
In a stock Magento system, there’s several tables where a row will have an ID field of 0. mysql> select * from core_storeG: *************************** 1. row *************************** store_id: 0 code: admin website_id: 0 group_id: 0 name: Admin sort_order: 0 is_active: 1 *************************** 2. row [...]
astorm
If you’re new to Magento, you may not realize that every remote API method has a native PHP equivalent. The why, how, and how to identify these models is covered elsewhere, but one thing I forget at my peril is how useful the API methods are when I need to serialize something as JSON or via PHP’s serialize function. [...]
astorm
Can’t Log into the Admin Roundup Stack Exchange answer where I (attempt to?) list every possible reason the Magento Admin might not set a session cookie, creating the dreaded “can’t log into the admin” error.
astorm
Anti-SQL Bias Developers coming into Magento are often put off by seemingly voodoo rituals like “Don’t directly manipulate the database tables with SQL”. This may be a ritual, but it’s a smart one, and my answer to this questions tells you why. It also includes an example SQL query for fetching all the product [...]
astorm
I can’t login to Magento Admin Another misconfiguration that can make it impossible for developers to log into the Magento admin.
astorm
tim-reynolds/magento-qconfig When I started using Magento the System Configuration section made me feel a little dumb — so many options, but no easy way to search for things. I’d always forget where a particular option was. After a few months of using grep and ack to search though the system.xml files and work backwards to figure [...]
astorm
Magento system.xml hint tag. Some background on an abandoned “hint” tag for Magento’s system configuration form fields.
astorm
Barely Magento related — mainly a tab sweep to capture some Stack Overflow questions where I’m re-familiarizing myself with DBA concepts as part of a Magento upgrade project. Optimizing ALTER TABLE Debugging errno: 150 More errno: 150
astorm
Replay SQL Log An interesting project (also forked and improved by Magento stalwart fbrnc) that lets you replay the contents of Magento’s database log for the purpose of improving performance during a Setup Resource upgrade. I haven’t tried using it, but it looks useful. Also, if there’s any computer science teachers [...]
astorm
Vinai Koop (author of Grokking Magento) pointed me towards the magento-hackathon/composer-command-integrator Magento package (in a GitHub thread). This packages adds a deploy-all command to the Firegento Magento composer project which (presumably) allows users to explicitly trigger an installation of their packages into their Magento [...]
astorm
Magento Community Edition (CE) 1.9 Release Notes Pretty solid release notes for the Magento 1.9 release.
astorm
In his soon to be referenced widely Magento Infinite Theme Fallback Fix, Eric Wiese notes that layout update XML files added via theme.xml are ignored by the parent/child theme inheritance. An XML file added to a parent’s theme.xml will not be added automatically to the child theme’s layout. Eric’s solution is a custom [...]
astorm
One of the things Magento 1.9 brings to the table is unlimited theme fallback via a parent/child theme mechanism. If you ever need to find the current theme’s parent programmatically, here’s what you’ll want to do. $design = Mage::getDesign(); $config = Mage::getSingleton('core/design_config'); $area = [...]
astorm
Magento – Knowledge Base – Magento CE 1.9 and EE 1.14 Responsive Web Design Developer’s Guide – eCommerce Software for Growth A deep dive from eBay on the new Magento responsive theme.
astorm
Magento Infinite Theme Fallback Fix Covers Magento 1.9’s new parent/child theme concept, and offers an extension for more Magento 2 like merging of theme files (vs. complete file replacement)
astorm
I’m still digging into the new Magento 1.9 CE responsive web design (RWD) theme, but one thing I noticed immediately (since it conflicted with my new Custom Checkout Step extension) is how the theme needed to replace a method in the Prototype JS Checkout class. #File: skin/frontend/rwd/default/js/opcheckout_rwd.js [...]
astorm