Tag Archives: Magento

Useful Function To Get The Full URL Path In Magento

Magento CE 1.8.0.0 I recently needed to build the full URL for Magento from a relative path. I wrote this little function for my helper and I thought someone else might want to use it. 1234567891011121314151617181920212223242526272829public function buildFullPathUrl($path,$type) {     $relative = ltrim($path, ‘/’);     switch ($type) {         case […]

Add Home Link To Magento Navigation With Active State

Magento 1.8.0.0 CE This is actually really easy to do. Why this still isn’t part of Magento out-of-the-box beggars belief, but I guess they have their reasons. First, copy the menu phtml file to your own theme folder. The original is located at app/design/frontend/base/default/template/page/html/topmenu.phtml. Now let’s add our link, with ‘active’ state support. By default, […]