• Resolved francescobarbato

    (@francescobarbato)


    Hi, needing to update the warehouse of an external database, I created a webhook to a php script.

    However, I cannot extrapolate the data of the “line_items” array, following your tree as per attachment.
    https://www.dropbox.com/s/qkau5oa307tk5jg/Schermata%202021-03-17%20alle%2015.56.33.png?dl=0

    I do a for loop like this but the data is not returned:

    $ data = file_get_contents (“php: // input”);
    $ events = json_decode ($ data, true);

    foreach ($ events [‘line_items’] [0] [‘sku’] as $ array_result) {

    echo $ array_result;

    }

    What am I doing wrong?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Webhook – problem’ is closed to new replies.