Magento available shipping methods by order id
Magento available shipping methods by order id

Here I am going to show you how to get Magenot available shipping methods by order id.I am writing this article because I was facing problem for doing same type of requirements.The requirement is I have order object where I can get order Id easily and I am not in checkout page or quote section .I Want to fetch all available shipping method for an order in order view page.SO for that I have only order object and all sorts of order items.But I don’t have quote items.But How can I fetch that quote logic in order info page of admin.So That admin can change shipping method if he want to change shipping method of an existing order.For all requirements a custom module be required but I can just show you how you can only fetch Magento available shipping methods by order id.Then all other logic is yours.Like to show block in order info page and to place a new button called change shipping method etc.But I am just explains how you can do some of parts of my that custom module.

So simply you can get order object in order info page by

or if you have order object then its better to get order Id.In my case I just fetch the order object by $this->getOrder().

Now Our logic is how get all rate request.

You can simply call to the above function by

Magento available shipping methods by order id
The following two tabs change content below.
Jyotiranjan is one of passionate programmer who has been working in magento since 6 years and in the mean time he has developed enormous amount of modules and customisation of sites. He loves to write blogs and travel for long journeying.

Latest posts by Jyotiranjan Biswal (see all)

Tagged on:                         

One thought on “Magento available shipping methods by order id

Leave a Reply

Your email address will not be published. Required fields are marked *