From d8e01b23cd5f7eff6fa95fd13f0e3338990ca0b2 Mon Sep 17 00:00:00 2001 From: Dekadinious <37292177+Dekadinious@users.noreply.github.com> Date: Wed, 20 Dec 2023 22:52:00 +0100 Subject: [PATCH] Update documentation in class-wc-order-item-product.php (#41160) * Update class-wc-order-item-product.php * Changelog. * Fix alignment. --------- Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com> --- .../changelog/Update item subtotal and total inline docs. | 4 ++++ .../woocommerce/includes/class-wc-order-item-product.php | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/Update item subtotal and total inline docs. diff --git a/plugins/woocommerce/changelog/Update item subtotal and total inline docs. b/plugins/woocommerce/changelog/Update item subtotal and total inline docs. new file mode 100644 index 00000000000..5f0b6d5bc96 --- /dev/null +++ b/plugins/woocommerce/changelog/Update item subtotal and total inline docs. @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Update item subtotal and total inline docs. diff --git a/plugins/woocommerce/includes/class-wc-order-item-product.php b/plugins/woocommerce/includes/class-wc-order-item-product.php index 0f7f82654eb..f6f5a9dc837 100644 --- a/plugins/woocommerce/includes/class-wc-order-item-product.php +++ b/plugins/woocommerce/includes/class-wc-order-item-product.php @@ -269,7 +269,8 @@ class WC_Order_Item_Product extends WC_Order_Item { } /** - * Get subtotal. + * Gets the item subtotal. This is the price of the item times the quantity + * excluding taxes before coupon discounts. * * @param string $context What the value is for. Valid values are 'view' and 'edit'. * @return string @@ -289,7 +290,8 @@ class WC_Order_Item_Product extends WC_Order_Item { } /** - * Get total. + * Gets the item total. This is the price of the item times the quantity + * excluding taxes after coupon discounts. * * @param string $context What the value is for. Valid values are 'view' and 'edit'. * @return string