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"
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:
- theme/modules/ProductAddedPopIn/ProductAddedPopIn.jsx
- theme/modules/ProductAddedPopIn/ProductAddedPopIn.scss
- theme/modules/ProductAddedPopIn/ProductAddedPopInContent.jsx
- theme/modules/ProductAddedPopIn/ProductAddedPopInFragment.gql
- theme/modules/ProductList/ProductListSlider/withNumberOfProductsPerSlide.jsx