woocommerce / woocommerce-rest-api-js-lib

New JavaScript library for WooCommerce REST API
https://www.npmjs.com/package/@woocommerce/woocommerce-rest-api
MIT License
273 stars 76 forks source link

How can I un set a Sale Price? #124

Closed mylifelineio closed 1 year ago

mylifelineio commented 1 year ago

It does not seem possible to unset a sale price?

I have tried, an empty string, the regular price, 0, "0"... nothing...

await WooCommerce.putAsync(putUrl, {
                price: price,
                regular_price: price,
                sale_price: "",
                on_sale: false,
                barcode: product.barcode,
                stock_quantity: product.stock
              });
mylifelineio commented 1 year ago

Unresolved