Posts

Credit card number for Testing payment methods

American Express: 378282246310005 3111111111111117 343434343434343 370000000000002 340000000000009 371449635398431 378734493671000 Visa: 4111111111111111 4007000000027 4222222222222 4012888888881881 MasterCard: 5105105105105100 5111111111111118 5454545454545454 5500000000000004 5555555555551111 5555555555554444 Discover: 6011111111111117 6011000000000004 6011000990139424 6011601160116611 6111111111111116 for expiry date select any feature month and year.... 

Remove index.php from url in magento

If you want to remove index.php from your magento store url then please follow below steps. Like http://www.magentosite.com/index.php     to     http://www.magentosite.com Go to admin side. Go to " System => Configuration =>Web =>Search Engine Optimization ". Use Web Server Rewrites : Yes. After that clear cache and index from Magento admin side. Enjoy...

Magento Admin in Debug Mode

Just run this query: ==> INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/debug/template_hints', 1), ('default', 0, 'dev/debug/template_hints_blocks', 1); To disable them again, run this query ==> UPDATE core_config_data set value = 0 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints' To enable again run this query ==> UPDATE core_config_data set value = 1 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'

How to call static block in frontend in magento

echo $this->getLayout()->createBlock('cms/block')->setBlockId(''Here Block Identifire'')->toHtml();

Get Product Detail by product id in Magento

$model = Mage::getModel('catalog/product'); //getting product model $_product = $model->load($pro_id); //getting product object for particular product id echo $product = $_product->getid();  //Get Product Id echo $_product->getShortDescription(); //product's short description echo $_product->getDescription(); // product's long description echo $_product->getName(); //product name echo $_product->getPrice(); //product's regular Price echo $_product->getSpecialPrice(); //product's special Price echo $_product->getProductUrl(); //product url echo $_product->getImageUrl(); //product's image url

How to call any phtml file into other phtml file in magento

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('checkout/cart.phtml')->toHtml(); ?> <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('checkout/success.phtml')->toHtml(); ?>