Skip to main content
Version: 3.x

3.9 -> 3.10

This page lists the highlights for upgrading a project from Front-Commerce 3.9 to 3.10

Update dependencies

Update all your @front-commerce/* dependencies to this version:

pnpm update "@front-commerce/*@3.10.0"

Automated Migration

We provide a codemod to automatically update your codebase to the latest version of Front-Commerce. This tool will update your code when possible and flag the places where you need to manually update your code (with // TODO Codemod comments).

pnpm run front-commerce migrate --transform 3.10.0

Changes introduced with this automated migration script:

  • Replaced authorizationSucess with hipayAuthorizationSuccess in GraphQL documents for HiPay (example)

Manual Migration

Shipping methods

In this release, we reworked the way additional data component can be retrieved during the shipping method selection at checkout time.

In v2, these component were registered by overriding the theme/modules/Checkout/ShippingMethod/AdditionalShippingInformation/getAdditionalDataComponent.js file.

In v3, we're now leveraging on the feature registration hook so that any extension can register its own component without having to override theme files, which greatly enhance maintainability.

Although this change is backward compatible, we recommend that you update your getAdditionalDataComponent file to take advantage of the latest way of using additional data components.

For more informations, please refer to the related change.

Product Cross-Sells in ProductAddedPopin

In this release, we've added product cross-sell recommendations to the ProductAddedPopin component that appears after adding items to cart. This enhancement allows you to display related products and increase cross-selling opportunities.

The cross-sells are displayed in a slider format below the added product details in the popin modal.

If you have overridden any of the following components in your project, you will need to update them with the latest version to benefit from this new feature: