Tuesday, May 29, 2012

Disabling Google Tracking from a particular system or browser in Google analytic

Hi, We can disable or switch of Google tracking from Google analytic of a particular system or browser just download this file and then edit your Google analytic account and save it place this file in root folder and then run this .html file in browser so this will make Google analytic not track you click in your account so you will get clicks or tracking from other system Note:- Please run in your system in every browser and also run when you clear your cache so it will set your browser not track in Google Just Download the file from this link http://www.magentocommerce.com/boards/viewthread/282323/

Friday, May 18, 2012

Calling block programmatically in magento

Module page



<?php echo $this->getLayout()->createBlock('newmodule/newblock')->setTemplate('newmodule/newblock.phtml')->toHtml(); ?>



Calling Static Block



<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('indentifer')->toHtml() ?>



OR




$block = Mage::getModel('cms/block')->load('identifier');
echo $block->getTitle();
echo $block->getContent();

In CMS PAge

{{block type='core/template' template='callouts/topslider.phtml' }}