From 990a991781eedfdba5e9f80890e75455d28aa806 Mon Sep 17 00:00:00 2001 From: jamesqquick Date: Thu, 22 Jan 2026 13:17:51 -0600 Subject: [PATCH 1/5] Updated gift certificate balance placeholder --- core/messages/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/messages/en.json b/core/messages/en.json index 5a663c6a74..640f4216a3 100644 --- a/core/messages/en.json +++ b/core/messages/en.json @@ -574,7 +574,7 @@ "title": "Check balance", "description": "You can check the balance and get the information about your gift certificate by typing the code in the box below.", "inputLabel": "Code", - "inputPlaceholder": "Enter code", + "inputPlaceholder": "xxx-xxx-xxx-xxx", "purchasedDateLabel": "Purchased", "senderLabel": "From", "Errors": { From 0107da964f4989477777004f7f934393ba089f09 Mon Sep 17 00:00:00 2001 From: jamesqquick Date: Thu, 22 Jan 2026 13:18:22 -0600 Subject: [PATCH 2/5] remove placeholders from gift certificates form --- .../[locale]/(default)/gift-certificates/purchase/page.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/app/[locale]/(default)/gift-certificates/purchase/page.tsx b/core/app/[locale]/(default)/gift-certificates/purchase/page.tsx index 7b78bed80e..07edaab6a9 100644 --- a/core/app/[locale]/(default)/gift-certificates/purchase/page.tsx +++ b/core/app/[locale]/(default)/gift-certificates/purchase/page.tsx @@ -26,14 +26,12 @@ function getFields( type: 'text', name: 'senderName', label: `${t('Purchase.Form.senderNameLabel')} *`, - placeholder: t('Purchase.Form.namePlaceholder'), required: true, }, { type: 'email', name: 'senderEmail', label: `${t('Purchase.Form.senderEmailLabel')} *`, - placeholder: t('Purchase.Form.emailPlaceholder'), required: true, }, ], @@ -42,14 +40,12 @@ function getFields( type: 'text', name: 'recipientName', label: `${t('Purchase.Form.recipientNameLabel')} *`, - placeholder: t('Purchase.Form.namePlaceholder'), required: true, }, { type: 'email', name: 'recipientEmail', label: `${t('Purchase.Form.recipientEmailLabel')} *`, - placeholder: t('Purchase.Form.emailPlaceholder'), required: true, }, ], @@ -57,7 +53,6 @@ function getFields( type: 'textarea', name: 'message', label: t('Purchase.Form.messageLabel'), - placeholder: t('Purchase.Form.messagePlaceholder'), required: false, }, { @@ -87,7 +82,6 @@ function getFields( minAmount: String(giftCertificateSettings.minimumAmount.value), maxAmount: String(giftCertificateSettings.maximumAmount.value), })} *`, - placeholder: t('Purchase.Form.customAmountPlaceholder'), pattern: '^[0-9]*\\.?[0-9]+$', required: true, }, From f049d8899097981b942b772b7c96908357ec1911 Mon Sep 17 00:00:00 2001 From: jamesqquick Date: Thu, 22 Jan 2026 13:28:01 -0600 Subject: [PATCH 3/5] add placeholders for coupon code and gift certificate on cart page --- core/app/[locale]/(default)/cart/page.tsx | 3 +++ core/messages/en.json | 1 + 2 files changed, 4 insertions(+) diff --git a/core/app/[locale]/(default)/cart/page.tsx b/core/app/[locale]/(default)/cart/page.tsx index ff45b25c8d..9a2c26c6c7 100644 --- a/core/app/[locale]/(default)/cart/page.tsx +++ b/core/app/[locale]/(default)/cart/page.tsx @@ -66,6 +66,7 @@ export default async function Cart({ params }: Props) { setRequestLocale(locale); const t = await getTranslations('Cart'); + const tGiftCertificates = await getTranslations('GiftCertificates'); const format = await getFormatter(); const cartId = await getCartId(); @@ -265,6 +266,7 @@ export default async function Cart({ params }: Props) { couponCodes: checkout?.coupons.map((coupon) => coupon.code) ?? [], ctaLabel: t('CheckoutSummary.CouponCode.apply'), label: t('CheckoutSummary.CouponCode.couponCode'), + placeholder: t('CheckoutSummary.CouponCode.inputPlaceholder'), removeLabel: t('CheckoutSummary.CouponCode.removeCouponCode'), }} decrementLineItemLabel={t('decrement')} @@ -281,6 +283,7 @@ export default async function Cart({ params }: Props) { giftCertificateCodes: checkout?.giftCertificates.map((gc) => gc.code) ?? [], ctaLabel: t('GiftCertificate.apply'), label: t('GiftCertificate.giftCertificateCode'), + placeholder: tGiftCertificates('CheckBalance.inputPlaceholder'), removeLabel: t('GiftCertificate.removeGiftCertificate'), } : undefined diff --git a/core/messages/en.json b/core/messages/en.json index 640f4216a3..cd2dd9b245 100644 --- a/core/messages/en.json +++ b/core/messages/en.json @@ -315,6 +315,7 @@ "CouponCode": { "apply": "Apply", "couponCode": "Coupon code", + "inputPlaceholder": "xxxxxx", "removeCouponCode": "Remove coupon code", "invalidCouponCode": "Please enter a valid coupon code", "cartNotFound": "An error occurred when retrieving your cart" From 7f9f1f3a097480271859429f3647523ef2306254 Mon Sep 17 00:00:00 2001 From: jamesqquick Date: Thu, 22 Jan 2026 14:52:00 -0600 Subject: [PATCH 4/5] added changelog --- .changeset/cold-donuts-double.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cold-donuts-double.md diff --git a/.changeset/cold-donuts-double.md b/.changeset/cold-donuts-double.md new file mode 100644 index 0000000000..7682624258 --- /dev/null +++ b/.changeset/cold-donuts-double.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Add placeholders for both gift certificate and coupon inputs as well as remove redundant placeholders in the gift certificate purchase form. From bb528a2052c2552d82d258d40b726412b0ac159e Mon Sep 17 00:00:00 2001 From: jamesqquick Date: Thu, 22 Jan 2026 14:58:10 -0600 Subject: [PATCH 5/5] remove placeholder for coupon code --- .changeset/cold-donuts-double.md | 2 +- core/app/[locale]/(default)/cart/page.tsx | 1 - core/messages/en.json | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.changeset/cold-donuts-double.md b/.changeset/cold-donuts-double.md index 7682624258..df347e32eb 100644 --- a/.changeset/cold-donuts-double.md +++ b/.changeset/cold-donuts-double.md @@ -2,4 +2,4 @@ "@bigcommerce/catalyst-core": patch --- -Add placeholders for both gift certificate and coupon inputs as well as remove redundant placeholders in the gift certificate purchase form. +Add placeholders for gift certificate inputs and remove redundant placeholders in the gift certificate purchase form. diff --git a/core/app/[locale]/(default)/cart/page.tsx b/core/app/[locale]/(default)/cart/page.tsx index 9a2c26c6c7..677f74523e 100644 --- a/core/app/[locale]/(default)/cart/page.tsx +++ b/core/app/[locale]/(default)/cart/page.tsx @@ -266,7 +266,6 @@ export default async function Cart({ params }: Props) { couponCodes: checkout?.coupons.map((coupon) => coupon.code) ?? [], ctaLabel: t('CheckoutSummary.CouponCode.apply'), label: t('CheckoutSummary.CouponCode.couponCode'), - placeholder: t('CheckoutSummary.CouponCode.inputPlaceholder'), removeLabel: t('CheckoutSummary.CouponCode.removeCouponCode'), }} decrementLineItemLabel={t('decrement')} diff --git a/core/messages/en.json b/core/messages/en.json index cd2dd9b245..640f4216a3 100644 --- a/core/messages/en.json +++ b/core/messages/en.json @@ -315,7 +315,6 @@ "CouponCode": { "apply": "Apply", "couponCode": "Coupon code", - "inputPlaceholder": "xxxxxx", "removeCouponCode": "Remove coupon code", "invalidCouponCode": "Please enter a valid coupon code", "cartNotFound": "An error occurred when retrieving your cart"