How to call any template inside phtml file magento
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
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
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
We can simply redirect from a page if javascript is disabled Here is the code to do so
