Magento 1.8 – Shipping Method Name Alias

checkoutmagento-1.8magento-1.9shipping-methods

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"

thanks

Best Answer

Another possible solution would be overriding the template file:

in case of the rwd (Magento 1.9.0.1) 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.

Related Topic