Skip to content

feat(checkout): CHECKOUT-10152 skip the standalone billing step for themeV2#3161

Merged
richapatel1510 merged 1 commit into
masterfrom
CHECKOUT-10152
Jul 16, 2026
Merged

feat(checkout): CHECKOUT-10152 skip the standalone billing step for themeV2#3161
richapatel1510 merged 1 commit into
masterfrom
CHECKOUT-10152

Conversation

@richapatel1510

@richapatel1510 richapatel1510 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What/Why?

For enhanced checkout theme, skip the standalone billing step since for themV2 the billing step stays in Payment block.

Rollout/Rollback

Revert this PR.

Testing

  • CI checks
  • Manual testing

Enhanced theme setting OFF

CHECKOUT-10152-OldTheme.mov

Enhanced theme setting ON

CHECKOUT-10152.mov

Note

Medium Risk
Changes core checkout step order and post-shipping navigation; mis-gating themeV2 could skip billing or show the wrong flow for some stores.

Overview
For themeV2 checkouts, billing is collected on the payment step instead of a separate step. This PR wires that into step configuration and navigation.

isThemeV2Enabled is extracted from ThemeProvider into a shared helper (same experiment + checkoutV2Theme flags) and exported from @bigcommerce/checkout/contexts. getCheckoutStepStatuses uses it so the billing step is omitted when themeV2 is on, including with wallet payments. CheckoutPage advances past shipping straight to the next incomplete step when themeV2 is true, even if billing is not “same as shipping.” Tests cover the shortened step list (Customer → Shipping → Payment).

Reviewed by Cursor Bugbot for commit 1349cef. Bugbot is set up for automated code reviews on this repo. Configure here.

@richapatel1510

Copy link
Copy Markdown
Contributor Author

cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1349cef. Configure here.

@richapatel1510
richapatel1510 marked this pull request as ready for review July 16, 2026 02:41
@richapatel1510
richapatel1510 requested a review from a team as a code owner July 16, 2026 02:41

@bc-maxy bc-maxy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for adding the videos with the whole flow! 👏

Comment on lines +8 to +11
const newThemeExperimentEnabled = Boolean(
config.checkoutSettings.features['CHECKOUT-7962.update_font_style_on_checkout_page'] ??
true,
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps use isExperimentEnabled()?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest looks good.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot actually do that because isExperimentEnabled() is part of core package and using it here will result in circular dependency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. A separate task, isExperimentEnabled() needs to be out of core. 😂

@richapatel1510
richapatel1510 requested a review from bc-peng July 16, 2026 06:00
@richapatel1510
richapatel1510 merged commit 399f38a into master Jul 16, 2026
17 checks passed
@richapatel1510
richapatel1510 deleted the CHECKOUT-10152 branch July 16, 2026 06:07
@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Integration US
success 20260716061808 by Launchbay

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Staging US
success 20260716061808 by Launchbay

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse results

🖥️ Desktop:

Category Score
🟢 Performance 96
🟢 Accessibility 90
🟠 Best practices 78

📱 Mobile:

Category Score
🟠 Performance 78
🟢 Accessibility 90
🟠 Best practices 78

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Production US
success 20260716061808 by Launchbay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants