• Resolved sarahweb

    (@sarahweb)


    So an odd one here – we tie our orders to a fulfilment place and they access the orders via API.

    We then have a number of shipping rates – all are based upon the flat rate shipping – but some are next day, DHL, courier etc – all with different titles and costs – and this allows the customer to select which one they want

    The issue that we are having now is that the API is only pulling the method_id of these shipping values and they all say “flat_rate” – because thay are all based on the flat rate shipping method…

    We do not seem to be able to change this? Is it possible?

    The method_title does change to what we type on each one – but they are using method_id…

    This used to work so I am unsure if its their system thats changed recently or woo? but I am sure that I am not the only system tieing into auto fulfilment systems?

    they basically are pulling from these fields – this is what you would see if you export the orders to a CSV file

    items:PRODUCT × 3|method_id:flat_rate|taxes:a:1:{s:5:"total";a:1:{i:1;s:6:"0.6584";}}

    However we want the method_title which would say

    FREE [RM Tracked postage]
    RM Tracked postage
    Free shipping
    Premium Shipping (DHL)
    Premium Shipping (by DHL)

    Anyone come across this also? and any thoughts?

    Thank you Sarah

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @sarahweb

    Thanks for reaching out!

    This is a fairly complex development topic that would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

    Thread Starter sarahweb

    (@sarahweb)

    Thank you for your reply and yes 100% agree is a big issue – I was just not sure if you at WOO were aware that the method_id is not changing when replicating flat rates – and kind of seems that it might cause issues down the line for other API users and whether anyone else has come across this – or maybe its a new thing ? I am still looking to see if there is a plugin that can create the same straight forwrad flat rate shipping but allows a change in method_id

    and yes would be very interested to see if anyone else has this issue

    do you know if this has always been the case with method_id values staying the same ??

    Saif

    (@babylon1999)

    Hello @sarahweb,

    You can add or retrieve a shipping line with a custom method_id using /wp-json/wc/v3/orders/.

    For more context, please check this part of the rest API documentation: https://woocommerce.github.io/woocommerce-rest-api-docs/#update-an-order

    As mentioned above custom solutions are not within our scope of support, I recommend hiring a WooExpert if you need help with this.

    Cheers!


    Thread Starter sarahweb

    (@sarahweb)

    Thank you and yes I use API and can see what is being brought across – seemingly everyone – most shipping plugins don’t change the method_id either – so back to my fulfilment company to review their code – this was more a conversation post than asking for assistance

    Thank you for reaching out, @sarahweb .

    I am going ahead with marking this thread as resolved now. Feel free to open a new one, when needed.

    Have a great one!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘method_id = flat_rate for all flat rate shipping’ is closed to new replies.