Archive for July, 2010

First create a static block from admin >> CMS >> static blocks and write this code in your phtml file :

getLayout()->createBlock('cms/block')->setBlockId('given_Static_block_name')->toHtml();
?>

Hi magento developers, if you are getting problem in login in admin panel after fresh magento installation on your system then I have a solution for magento version 1.4.x.x go to: app/code/core/Mage/Core/Model/Session/Abstract and open up varien.php,...

In this post I simply showing how to find the cursor position in the window screen. function showPositionOnClick(evt) { var e = (window.event) ? window.event : evt; alert(e.clientX); } When user click on this button...

Steps for Remember me functionality in login.phtml Step 1: Please find the following path http:\\yourdomain\app\code\core\Mage\Customer\controllers\AccountController.php Step2: Find following function: public function...

I have tried many times but I didn't got success . But today I got the solution to show the currency symbol of product price: Currency Code : <?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?> Currency...

If you want to show product thumbnail on any page in your requirement size then At the showing page : <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100, 100) ?>" border="0"...