I know this has been explained elsewhere, but I wanted a central location I could reference as needed. So, let’s get started. If you are on a page in Magento, and want to get information about the currently logged in customer, or on the admin side, the admin user: // Customer $customer = Mage::getSingleton('customer/session')->getCustomer(); $custName… Continue reading Magento – Getting the currently logged in customer or admin user
After having this problem several times as I installed, and re-installed Magento, I decided to post this on my own blog for future reference. Sometimes when using Magento with a Chrome browser the cookie functionality doesn’t work, the code modification is relatively simple. Open the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and find the following code, somewhere near line… Continue reading Fixing the Chrome cookie problem in Magento
If you have been using Magento for even a short time you have found the usefulness of enabling the Template Path Hints and Block Names on your website. Unfortunately those options don’t exist in the default config by default. Thankfully, due to the very configurable and modular nature of Magento, the options to turn them… Continue reading Enable Template Path Hints and Block Names in Default Config Options
This example is going to assume we are moving the poll block from the right side of the page to the left side of the page. Assuming that you want to move a block on a magento page from its current location to another location on the same page, you need to do the following:… Continue reading Moving a block in Magento
Just a minor rant. We had just purchased Magento professional a few weeks ago, and then on the 1st of February Magento announces that they are phasing out Magento Professional. Would have been nice to mention this when we purchased it.