Commit d66cde4291c for woocommerce
commit d66cde4291cb84eae3996711729bfadb72f55c80
Author: Cvetan Cvetanov <cvetan.cvetanov@automattic.com>
Date: Fri Mar 20 12:18:07 2026 +0200
Add description for COD enable_for_methods field in v4 settings API (#63767)
* Add description for COD enable_for_methods field in v4 API
The enable_for_methods field in the COD gateway settings schema was
missing a description (empty string). Add a concise description that
explains the field's purpose, aligning with the design specifications.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/63767-update-cod-enable-for-methods-description b/plugins/woocommerce/changelog/63767-update-cod-enable-for-methods-description
new file mode 100644
index 00000000000..f6e32596fcf
--- /dev/null
+++ b/plugins/woocommerce/changelog/63767-update-cod-enable-for-methods-description
@@ -0,0 +1,4 @@
+Significance: patch
+Type: add
+
+Add description for COD enable_for_methods field in v4 settings API.
\ No newline at end of file
diff --git a/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php b/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php
index c79f9c81f57..586ec71a37d 100644
--- a/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php
+++ b/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php
@@ -71,7 +71,7 @@ class CodGatewaySettingsSchema extends AbstractPaymentGatewaySettingsSchema {
'enable_for_methods' => array(
'label' => __( 'Available for shipping methods', 'woocommerce' ),
'type' => 'multiselect',
- 'desc' => '',
+ 'desc' => __( 'Choose which shipping methods support Cash on delivery.', 'woocommerce' ),
'options' => $this->load_shipping_method_options(),
),
'enable_for_virtual' => array(