Title: Change shipping method
Last modified: February 19, 2022

---

# Change shipping method

 *  Resolved [cochii](https://wordpress.org/support/users/cochii/)
 * (@cochii)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/)
 * Hello
    I have a site with woocommerce and several other plugins Depending on 
   the role of the user, 2 shipping methods are available: free shipping and paid
   shipping (the minimum amount for free shipping and the price of paid shipping
   changes according to the role of the user)
 * when modifying an order by an administrator, there is a recalculation of the 
   prices of the order.
    Once this calculation is done, I would like to modify the
   shipping method of the order
 * So far, I managed to retrieve the shipping modes for the user and the current
   shipping mode of the order
    Depending on the case, I would like to delete the
   current shipping method and put the new one in its place (so change the id, name
   and price for the current order) I can’t find how to do that
 * Can you help me please ?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15382438)
 * Hi [@cochii](https://wordpress.org/support/users/cochii/)
 * Thanks for providing the details.
 * > Depending on the case, I would like to delete the current shipping method and
   > put the new one in its place (so change the id, name and price for the current
   > order) I can’t find how to do that
 * You can do so in the “Billing” and “Shipping” screens. You’ll need to select 
   the _pencil icon_ next to each of them.
 * ![IMAGE](https://i0.wp.com/woocommerce.com/wp-content/uploads/2020/03/order-management-
   10.png)
 * You can read more on editing order details here in our documentation: [https://woocommerce.com/document/managing-orders/#order-details](https://woocommerce.com/document/managing-orders/#order-details)
 * I hope this helps!
 *  Thread Starter [cochii](https://wordpress.org/support/users/cochii/)
 * (@cochii)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15382611)
 * Hello [@margaretwporg](https://wordpress.org/support/users/margaretwporg/) thanks
   for your response
    Excuse me, I forgot to specify that I wanted to do it automatically,
   in a piece of code that is executed automatically
 *  [aetta](https://wordpress.org/support/users/chiape/)
 * (@chiape)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15382829)
 * Hi [@cochii](https://wordpress.org/support/users/cochii/)
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone can chime in to help you out.
 * I can also recommend [the WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
 * We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * All the best!
 *  Thread Starter [cochii](https://wordpress.org/support/users/cochii/)
 * (@cochii)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15396107)
 * Hello !
    I found how to delete a shipping method but to add one, I need help 
   and maybe someone could help me
 * I have an instance of WC_Shipping_Free_Shipping that I want to set in WC_Order_Item_Shipping
   
   Can I set only the ID and do something to update all data or I need to set all
   data (method_title, method_id, total, array of data with order_id, name, instance_id,
   all meta_data with all articles) ?
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15396288)
 * Hi [@cochii](https://wordpress.org/support/users/cochii/)
 * Code customization goes beyond the scope of support we are able to provide in
   this forum. If you need further help, I’d recommend the Facebook community and/
   or Slack for more development-oriented questions as recommended previously.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15417369)
 * This thread has been inactive for a bit, so I’m going to mark it as closed.
 * Please feel free to open a new thread if you have any further questions.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change shipping method’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [edit order](https://wordpress.org/support/topic-tag/edit-order/)
 * [shipping](https://wordpress.org/support/topic-tag/shipping/)

 * 6 replies
 * 4 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/change-shipping-method/#post-15417369)
 * Status: resolved