In order to enable address fields in Magento customer registration forms you only need to enable the attribute setShowAddressField. To do so either add the following in your template or in the base local.xml (/app/design/frontend/base/default/layout/local.xml): As always, make sure to reload your cache afterwards. This setting will enable to execution of in register.phtml (/app/design/frontend/base/default/template/customer/form/register.phtml). That’s […]
In a recent Magento setup with a Varnish caching server an undefined PHP variable in a template resulted in the error message “ESI processing not enabled“. Due to the undefined PHP variable the underlying Varnish caching server’s Edge-side includes (ESI) capabilities, allowing content assembly by HTTP surrogates through in-markup XML-based language failed. After a quick […]
Since Magento uses the Zend Framework you are able to use Zend_Date to easily display localized dates in Magento. So, first create a Zend_Date object based on the locale set in the administration backend: Then simply output your date as localized string using Zend_Date->toString: Us usual, find formating rules in the Zend_Date constants documentation.
Sometimes you may want to remove certain navigation items in Magento’s built-in customer account navigation pane, such as “Recurring Profiles” or “My Applications” (OAuth). Fortunately, due to Magento’s underlying software architecture this can be achieved rather easily by disabling/removing the respective layout blocks. Since the primary goal should be to create a solution that can […]
When dealing with high traffic Magento installations you definitely want to implement caching mechanisms to ensure proper response times for your visitors. Apart from internal caching and indexing functionality provided by Magento there exist a couple of (external) extensions that help you speed of content delivery by e.g. caching entire pages, such as PageCache for […]