Commit 37f3113cad3 for woocommerce
commit 37f3113cad3a234ac2638943b37027a660a780a5
Author: Kathy <507025+helgatheviking@users.noreply.github.com>
Date: Sat Mar 7 13:19:16 2026 +0100
Add data-cart-item-key attribute to cart line item row. closes #63089. (#63090)
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
diff --git a/plugins/woocommerce/changelog/issues-63089-cart-item-row-data-key b/plugins/woocommerce/changelog/issues-63089-cart-item-row-data-key
new file mode 100644
index 00000000000..37f5b1e48b0
--- /dev/null
+++ b/plugins/woocommerce/changelog/issues-63089-cart-item-row-data-key
@@ -0,0 +1,4 @@
+Significance: minor
+Type: tweak
+
+Add data-cart-item-key attribute to cart line item row block.
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/cart-line-items-table/cart-line-item-row.tsx b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/cart-line-items-table/cart-line-item-row.tsx
index a15efeb3ac6..25b4d9b1c4b 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/cart-line-items-table/cart-line-item-row.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/cart-line-items-table/cart-line-item-row.tsx
@@ -204,6 +204,7 @@ const CartLineItemRow: React.ForwardRefExoticComponent<
return (
<tr
+ data-cart-item-key={ lineItem.key }
className={ clsx(
'wc-block-cart-items__row',
cartItemClassNameFilter,