Skip to content

fix(storefront): TRAC-366 audit and fix Stencil theme remote API calls for multi-language subfolder support#2635

Merged
bc-yevhenii-buliuk merged 1 commit intobigcommerce:masterfrom
bc-yevhenii-buliuk:TRAC-366
Apr 8, 2026
Merged

fix(storefront): TRAC-366 audit and fix Stencil theme remote API calls for multi-language subfolder support#2635
bc-yevhenii-buliuk merged 1 commit intobigcommerce:masterfrom
bc-yevhenii-buliuk:TRAC-366

Conversation

@bc-yevhenii-buliuk
Copy link
Copy Markdown
Contributor

@bc-yevhenii-buliuk bc-yevhenii-buliuk commented Apr 3, 2026

What?

This PR adds fixes to ensure selected utils.api remote requests include the storefront locale prefix via context.secureBaseUrl, so the server returns localized HTML/strings on subfolder locales (/es, /fr, etc.).

Theme changes: pass baseUrl (context.secureBaseUrl) for localized remote calls.

File Call Remote endpoint Purpose
product-details.js productAttributes.optionChange POST /remote/v1/product-attributes/{id} PDP: changing options updates price, bulk-pricing HTML, availability messages, etc.
cart-item-details.js productAttributes.optionChange POST /remote/v1/product-attributes/{id} Cart: edit line item modal — options / bulk-discount refresh
cart.js productAttributes.configureInCart GET /remote/v1/configure-options/{itemId} Cart: open “configure product” modal (server-rendered HTML)
cart.js productAttributes.optionChange POST /remote/v1/product-attributes/{id} Cart: same modal — purchasing_message / purchasable state
cart.js cart.getItemGiftWrappingOptions GET /remote/v1/gift-wrapping/{itemId} Cart: gift-wrapping modal HTML
shipping-estimator.js cart.getShippingQuotes GET /remote/v1/shipping-quote Cart: shipping quotes HTML (4th argument effective after stencil-utils supports requestOptions)

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

Screenshots (if appropriate)

testing bundle on employee store

before:
PDP -> productOptionsChanged
trac_366_bug_PDP

cart -> configureInCart
trac_366_bug_configure_options

cart -> optionChange
trac_366_bug_cart_options_change

cart -> getItemGiftWrappingOptions
trac_366_bug_cart_gift_wrapping

after:
PDP -> productOptionsChanged
trac_366_fix_PDP

cart -> configureInCart
trac_366_fix_configure_options

cart -> optionChange
trac_366_fix_cart_options_change

cart -> getItemGiftWrappingOptions
trac_366_fix_cart_gift_wrapping

@bc-yevhenii-buliuk bc-yevhenii-buliuk requested a review from a team as a code owner April 3, 2026 12:33
@bc-yevhenii-buliuk bc-yevhenii-buliuk self-assigned this Apr 3, 2026
@bc-yevhenii-buliuk bc-yevhenii-buliuk merged commit b2eba79 into bigcommerce:master Apr 8, 2026
1 check passed
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.

3 participants