Display category title in Magento

Quick method of retrieving and displaying Current Category title by echo in Magento. < ?php //Get current category from registry $currentCategory = Mage::registry(“current_category”); //Display the current Category Title echo $currentCategory->getName(); ?>

Validation classes in Magento

Probably many of Magento developers are aware of existence so called “validation” classes like “required-entry”(which is probably the most popular among all of them) but from time to time you need to use more sophisticated validation of your custom form fields – and for some of us that might become a problem, since far not…

Magento Module: Google Analytics Dashboard

Google Analytics is a brilliant tool for tracking visits and learning more about your visitors. However, if you want a quick look at your webshops’ stats, logging in to your account is quite some hassle. To make things a little easier for you (and, if you are a webdesigner: to make things a little easier…

Resize image and rounded corners using CSS

The idea is to use the background-size: cover; CSS property which handles the centering, cropping and, well, covering. Here’s an extract from the fiddle: div.yourWrapper { width: 50px; height: 50px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background: url(‘some_image.jpg’) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

How to manage Pages in Magento

In order to manage your web site pages you need to navigate to the CMS section under the Magento admin area. Click on the Manage Pages link in order to proceed with the pages’ modification: You can edit a page by clicking on it. The Edit Page will open: and modify it to your preference. Static blocks is another useful…

How to remove the wordpress.org link from Login / Register Page

  If you want to remove WordPress.org link from logo of your wordpress blog then just add following links of code inside your themes functions.php file. /* WordPress Change Login page logo link */ function change_login_page_url( $url ) { return get_bloginfo( ‘url’ ); } add_filter( ‘login_headerurl’, ‘change_login_page_url’ );