From 8ac57ad1e6bf18cc0bf53910e09f1c996ccf7d51 Mon Sep 17 00:00:00 2001 From: Josh Davenport-Smith Date: Tue, 1 Jul 2025 18:44:56 +0100 Subject: [PATCH 1/2] Resolve issue where a 400 error occurred due to missing coupon code data in the request. The coupon input field was being disabled before form submission, preventing the code from being included in the request payload --- packages/magento-cart-coupon/ApplyCouponForm/ApplyCouponForm.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/magento-cart-coupon/ApplyCouponForm/ApplyCouponForm.tsx b/packages/magento-cart-coupon/ApplyCouponForm/ApplyCouponForm.tsx index 8851185171..796eddaa9c 100644 --- a/packages/magento-cart-coupon/ApplyCouponForm/ApplyCouponForm.tsx +++ b/packages/magento-cart-coupon/ApplyCouponForm/ApplyCouponForm.tsx @@ -44,7 +44,6 @@ export function ApplyCouponForm(props: ApplyCouponFormProps) { rules={{ required: required.couponCode }} control={control} helperText={formState.errors.couponCode?.message} - disabled={formState.isSubmitting} showValid /> From 4913aeeae7c9237edc13361b72619e1d1f429198 Mon Sep 17 00:00:00 2001 From: Josh Davenport-Smith Date: Tue, 1 Jul 2025 18:48:28 +0100 Subject: [PATCH 2/2] Create changeset --- .changeset/odd-tomatoes-fix.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/odd-tomatoes-fix.md diff --git a/.changeset/odd-tomatoes-fix.md b/.changeset/odd-tomatoes-fix.md new file mode 100644 index 0000000000..977ef06950 --- /dev/null +++ b/.changeset/odd-tomatoes-fix.md @@ -0,0 +1,5 @@ +--- +"@graphcommerce/magento-cart-coupon": patch +--- + +Resolve issue where a 400 error occurred due to missing coupon code data in the request. The coupon input field was being disabled before form submission, preventing the code from being included in the request payload