Tags » Magento

Get shipping method detail

$activeCarriers = Mage::getSingleton(‘shipping/config’)->getActiveCarriers();

foreach($activeCarriers as $carrierCode => $carrierModel)
{
$options = array();
if( $carrierMethods = $carrierModel->getAllowedMethods() )
{
foreach ($carrierMethods as $methodCode => $method)
{

28 more words
Magento

Want to test your code online ...

If you want to test or check output of uyour code .

You can use this link .

http://www.writephponline.com/

It is very helpfull

Thank’s

Magento

How to get controller, module, action and router name?

You can easily get controller name, action name, router name and module name in any template file or class file.

IN TEMPLATE FILES

$this->getRequest() can be used in template (phtml) files. 189 more words

Magento

How to add Currency selector to Magento’s header.

You might say this tutorial is for beginners, since it’s pretty much straightforward.

You might have noticed the “Currency Setup” tab in Magento’s Administration under “System->Configuration” menu. 564 more words

Magento

Debugging in magento step by step

I wanted to give a more narrowly focused step by step debugging checklist for Magento.

Get XDebug or ZendDebugger Working
I, personally, don’t know how anyone can develop effectively outside of an IDE (mine being Eclipse PDT), or without a debugging environment. 815 more words

Magento

Custom sql query in magento to fetch data from database.

Yes you can run direct sql queries within Magento, the best way to do this is to use the read write resource. You can insatiate it with: 100 more words

Magento

Magento Debug Toolbar

Features:-

  • Magento module listing; Toggle Magento modules on the fly
  • Display peak memory usage, script execution time
  • Request information (controller name, action name, cookies variables, session variables, GET and POST variables)
  • 61 more words
Magento