//remap shipping method titles
-
Sorry me again… I am using the latest version of WooCommerce in conjunction with the plugin Table Rates and I have tried to use this snippet below, as I need a column in my CVS export which simply says “Ship by Weight” instead of eg “table_rate:7:6” or “table_rate:7:7” etc as well as “local_pickup:10” to say “Factory Collection”
//remap shipping method titles add_filter('woe_get_order_value_shipping_method_title','woe_rename_shipping_method_title', 10, 4); function woe_rename_shipping_method_title($value, $order, $item, $product) { if($value == 'UK Standard Shipping') // copy these 2 lines for other mappings return 'STANDARD'; // copy these 2 lines for other mappings return $value; }
The Shipping Method Title = Ship by Weight in the back end as well as the label… mmmm … I have tried every possible shipping method field that the export options give me however none give me the actual titles or labels on export per customer.
Clearly I am doing something wrong but having fiddled with the above in various guises and options it simply won’t work… I feel bad for asking but has anyone found a solution to this?
thanks
- The topic ‘//remap shipping method titles’ is closed to new replies.