1

This is code i use for getting current session shipping method code:

<?PHP echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingMethod(); ?>

But this code is only giving me the current session shipping method code not the shipping title.

How can i get the current session shipping method title ?

Thanks in advance!

Venelin
  • 2,905
  • 7
  • 53
  • 117
  • see the following answer http://stackoverflow.com/questions/6032936/how-do-i-get-the-shipping-method-the-user-has-chosen-during-checkout – Supravat Mondal Sep 28 '15 at 16:45
  • Can you post an answer to my question ? I have seen that but it is not working. Post what you think i must use. – Venelin Sep 28 '15 at 16:48

2 Answers2

5

You can get current session shipping method code & description by the following

Getting shipping method code

 <?php echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingMethod(); ?>

Getting shipping method description/title

<?php echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingDescription() ?>
electroid
  • 603
  • 8
  • 20
Supravat Mondal
  • 2,574
  • 2
  • 22
  • 33
0
Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingDescription();