From 98b9163302a79a4c23227bb84894ee8a687bc16a Mon Sep 17 00:00:00 2001 From: marcofucito Date: Thu, 14 Oct 2021 23:22:58 +0200 Subject: [PATCH] error fix in Python examples and other examples. In the examples of some languages the field: "regular_price" is used but it does not work to change the value of the shipping price. The correct field to use is: "settings" as in the examples in cUrl and Node.js --- source/includes/wp-api-v3/_shipping-zone-methods.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/includes/wp-api-v3/_shipping-zone-methods.md b/source/includes/wp-api-v3/_shipping-zone-methods.md index 0d7ac8af..0581f825 100644 --- a/source/includes/wp-api-v3/_shipping-zone-methods.md +++ b/source/includes/wp-api-v3/_shipping-zone-methods.md @@ -645,7 +645,7 @@ WooCommerce.put("shipping/zones/5/methods/26", data) ```php [ + 'settings' => [ 'cost' => '20.00' ] ]; @@ -656,7 +656,7 @@ print_r($woocommerce->put('shipping/zones/5/methods/26', $data)); ```python data = { - "regular_price": { + "settings": { "cost": "20.00" } } @@ -666,7 +666,7 @@ print(wcapi.put("shipping/zones/5/methods/26", data).json()) ```ruby data = { - regular_price: { + settings: { "cost": "20.00" } }