• Resolved cfarias95

    (@cfarias95)


    I update a specific property of a product and the other properties I created above are lost, for example, I create a product with sku, price, name and if I want to update only the name, I use the put method, the sku and the price is set to zero but I do not want to change the sku or the price already defined, I do not send neither in sku nor the price when doing the update.
    can someone tell me what I’m doing wrong please thank you very much I’m new to this

    • This topic was modified 4 years, 9 months ago by cfarias95.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cfarias95

    (@cfarias95)

    ??

    • This reply was modified 4 years, 9 months ago by cfarias95.
    Plugin Author WC Lovers

    (@wclovers)

    Hello, you need to pass the product object as a whole changing the filed you need to change. To change only the quick edit fields like name, price,sku use the route /products/quick-edit/<id> (PUT Request)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update product error’ is closed to new replies.