• I tried successfully to add a custom field to my test WP installation; the filed also appears using woocommerce REST API:

    excerpt:

    ‘meta_data’ =>
    array (size=1)
    0 =>
    array (size=3)
    ‘id’ => int 3293
    ‘key’ => string ‘kambusa’ (length=7)
    ‘value’ => string ‘123’ (length=3)

    but I’m not able to figure out how to update using REST API (no error given ,but seems to be ignored)

    ‘21.00’,
    ‘meta_data’ => [
    [‘kambusa’ => ‘456’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jthomas65

    (@jthomas65)

    also tried using v3 legacy API and product_meta, but seems to be ignored:

    $data[‘product’] = [
    ‘regular_price’ => ‘12.34’,
    ‘product_meta’ => [‘kambusa’ => ‘789’]
    ];

    $woocommerce->put(‘products/530’, $data);

    i also facing same problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘update product meta fields wit woocommerce REST API’ is closed to new replies.