How to call any template inside phtml file magento

Posted by on May 4, 2013 in Magento, Php | No comments yet

Sometimes you want to call a block inside a .phtml file without defining in layout. In this case, we can use a method called toHtml of a block. Assume that we have a block called Mymodule and a template that …

SagePay testing payment card details and address

Posted by on May 1, 2013 in General, Payment Methods | No comments yet

Use the following credit card numbers for testing. Visa (VISA) 4929000000006 MasterCard (MC) 5404000000000001 Visa Debit / Delta (DELTA) 4462000000000003 Solo (SOLO) 6334900000000005 Issue 1 UK Maestro / International Maestro (MAESTRO) 5641820000000005 Issue 01 American Express (AMEX) 374200000000004 Visa Electron …

Get number of post from wordpress query

Posted by on May 1, 2013 in Php, Wordpress | No comments yet

If we need to show the number of posts returned from query First we need to initialize the global variable global $wp_query And the entire code will be

Redirect to a new page if javascript is disabled

Posted by on Apr 30, 2013 in HTML, Javascript | No comments yet

We can simply redirect from a page if javascript is disabled Here is the code to do so

Load More