• Resolved slimcatdesign

    (@slimcatdesign)


    It would be nice for shipping method export strip all non alphanumerical symbols:

    lets say currently it exports “flat_rate:1” and the outcome to have “flatrate1″ as lets say Royal Mail don’t accept any ” “, “_” or “:” whn trying to upload CSV

    or at least add ability for custom tables:

    “instance_id” and “method_id”

    Otherwise it’s great plugin
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter slimcatdesign

    (@slimcatdesign)

    just found this:

    //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;
    }

    will give a try

    Thread Starter slimcatdesign

    (@slimcatdesign)

    yes it works a treat ??

    //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;
    }
    • This reply was modified 8 years, 2 months ago by slimcatdesign.
    Plugin Author algol.plus

    (@algolplus)

    hi

    I’m sorry for late reply.

    good luck ??

    alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shipping method’ is closed to new replies.