Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author TrusTech

    (@trusted)

    Hi and thank you for contacting us. Not sure if we’ve get it right, your are trying to retrieve a shipping zone name. Right?

    If so, we don’t do any changing for the shipping zones formation or name, we just change the states sent for the different dropdown lists.

    Hope this help.

    Thread Starter nivisoft

    (@nivisoft)

    Thanks for your reply.

    I am trying to retrieve shipping zone location. Its done using rest API. but it does not returns the location name. “code”: “KW:003”

    003 is the ID of the location. I want to get the Location name instant of ID.

    Plugin Author TrusTech

    (@trusted)

    It would be great if you can email the support team the request you are sending and which end-point of the API you are hitting. We will try it out and see if we can help you with that. Please, use e-mail and don’t reply in this thread to better protect your privacy.

    Thread Starter nivisoft

    (@nivisoft)

    Noted, Please send me your support mail id.

    thanks

    Plugin Author TrusTech

    (@trusted)

    support(at)trustech.net

    Plugin Author TrusTech

    (@trusted)

    Unfortunately it is in the DNA of the Woocommerce REST API for the end point you are using. It has nothing to do with our plugin which added the state for you. The end point you sent sends the state code only.

    Please check this documentation: https://github.com/woocommerce/woocommerce-rest-api-docs/blob/trunk/source/includes/wp-api-v3/_shipping-zone-locations.md

    You can consult the WC documentation for a different end-point or you can customize the REST API itself to include the name in the object.

    Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[NSFW] Zone locations in Rest API’ is closed to new replies.