I'm trying to setup shipping method aliases for the checkout process.

for example for USPS, instead of the end-user seeing

"Priority Mail 1-Day Small Flat Rate Box"

I'd like to display

"Standard Ground"



4 Answers 4


Another possible solution would be overriding the template file:

in case of the rwd (Magento you can find it here : app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml

Around line 58 you can find following code:

<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>

the important part of it is :

<?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>

Now you can replace it with your logic for example :

<?php if($_rate->getMethodTitle() == 'blalalalala'): ?>
 <?php echo 'yourName'; ?>
<?php endif; ?>

Hope my answer helped you.

  • this worked . thank you. I did add <?php else : echo $this->escapeHtml($_rate->getMethodTitle()) ?> Sep 12, 2014 at 17:43
  • For a cleaner solution, use Magento's built in translation functionality and add the translation to your translation file, e.g: <?php echo $this->__($this->escapeHtml($_rate->getMethodTitle())) ?>
    – Louis B.
    Aug 22, 2017 at 14:09

Looking through the USPS code it appears that all the titles are passed through the Magento translation tool. If this is the case you should be able to simply add them to your theme's translation file. This will save you having to edit any code or templates to change the title of the method.


Just update it in the locale file, you can change any text like this.

Zero code.


Goto and copy app/code/core/Mage/Checkout/Block/Onepage/Progress.php copy to


And edit function

 public function getShippingDescription()
return "MY Flat rate";

 // this type of condition here
        return $this->getQuote()->getShippingAddress()->getShippingDescription();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.