• Resolved Juuso Turunen

    (@juusoturunen)


    Hello!

    I made an update from 1.4.9 to 1.5.0 and I noticed some changes in WooCommerce API response regarding your plugin. I have an app that uses WC API to manage orders.

    Below are examples from WC API response. For context: I have a variable product (and now I have selected “Iso”) and two checkboxes created by your plugin (now checked “Sokerilla”).

    The old response:

    
    "meta_data":[
                   {
                      "id":34482,
                      "key":"pa_koko",
                      "value":"iso",
                      "display_key":"Valitse koko",
                      "display_value":"Iso"
                   },
                   {
                      "id":34483,
                      "key":" ",
                      "value":"Sokerilla",
                      "display_key":"",
                      "display_value":"Sokerilla"
                   }
                ]
    

    The new response:

    
    "meta_data":[
                   {
                      "id":34504,
                      "key":"pa_koko",
                      "value":"iso",
                      "display_key":"Valitse koko",
                      "display_value":"Iso"
                   },
                   {
                      "id":34505,
                      "key":" ",
                      "value":"Sokerilla",
                      "display_key":"",
                      "display_value":"Sokerilla"
                   },
                   {
                      "id":34506,
                      "key":"_wapf_meta",
                      "value":{
                         "60e6940b92fc1":{
                            "label":" ",
                            "value":"Sokerilla",
                            "raw":[
                               "8h9g5"
                            ]
                         }
                      },
                      "display_key":"_wapf_meta",
                      "display_value":{
                         "60e6940b92fc1":{
                            "label":" ",
                            "value":"Sokerilla",
                            "raw":[
                               "8h9g5"
                            ]
                         }
                      }
                   }
                ]
    

    Basically, this change is not a problem. I like more the old one because then I can get all metadata dynamically by just getting all display_values. Anyway, I need to know was this change made purposely. If it is, then I need to make changes to my app.
    I ask this because changelog doesn’t have any mention of this.

    Thanks for your great plugin! I appreciate your work!

    Kindly,
    Juuso

    • This topic was modified 2 years, 8 months ago by Juuso Turunen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @juusoturunen

    The order data now contains some metadata our plugin uses (with key “_wapf_meta”) which is what you’re seeing added. The other data (the fields the customer filled out) is still there as it has always been.

    Thread Starter Juuso Turunen

    (@juusoturunen)

    Hello!

    Thanks for your reply and answer! ?? I’ll update my app.

    Thank you for keeping updating and supporting this plugin.

    – Juuso

    Plugin Author Wombat Plugins

    (@maartenbelmans)

    Glad you’re happy! Please consider leaving us a quick rating here if you enjoy our free work & support. That’s the only way we can grow :).

    Thanks!
    Maarten

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changes in API response?’ is closed to new replies.