• Resolved Gijs de Lange

    (@gys1984)


    Hi there!

    I just updated a webshop using Woocommerce and your (pro) plugin. My customer used to be able to sort on the selected shipping method. He uses this in order to process his orders.

    Now, I guess WooCommerce has decided to move the shipping method field in the database structure, from 1 table to another. This makes the custom field (_order_shipping) we were using turn up empty.

    So the meta_key used to be _shipping_method in the wp_postmeta table. Now the meta_key is method_id in the wp_woocommerce_order_itemmeta.

    Could you give me a pointer on how to solve this? Is there anyway to get the meta_key method_id to show up in the custom fields in your plugin?

    Thanks in advance!

    https://wordpress.org/plugins/codepress-admin-columns/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jesper van Engelen

    (@engelen)

    It’s possible to solve this, but it’s not possible without programming knowledge. Are you familiar with PHP and WordPress’ action and filter hooks?

    Thread Starter Gijs de Lange

    (@gys1984)

    Only basic knowledge, but I’m comfortable playing around with it..

    Plugin Author Jesper van Engelen

    (@engelen)

    In that case, it’s going to be difficult to achieve this. However, if you feel like trying: you’ll want to create your own custom column type (see this tutorial). The hard part in this is actually implementing the get_raw_value()-function from the column class. In there, you should be using WooCommerce functions to fetch the shipping method for the order.

    I hope this helps you. If not, the advisable way to achieve this would be to hire a WordPress-developer implement the new column type for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce 2.1.5 – _shipping_method has been moved!’ is closed to new replies.