Skip to content

Upgrading to 1.1.18

This release primarily focuses on decoupling the checkout state from the session.

Please refer to the changelog for details.

Please check the upgrade process overview for Hyvä-Checkout first.
Then, to upgrade, run the command

composer update --with-dependencies hyva-themes/magento2-hyva-checkout:1.1.18

Remove Checkout Fallback URL

It is strongly recommended to remove the checkout/index fallback URL from the system configuration when upgrading to this version or later. For more information, refer to the documentation here.

Backward incompatible changes

Hyva_Checkout::breadcrumbs/waypoints.phtml

  • Due to the deprecation of the getCheckoutConfig() method in Hyva\Checkout\ViewModel\Breadcrumbs, we have made minimal logic changes to this template file.

Hyva_Checkout::templates/breadcrumbs.phtml

  • Due to the deprecation of the getCheckoutConfig() method in Hyva\Checkout\ViewModel\Breadcrumbs, we have made minimal logic changes to this template file.

Hyva_Checkout::navigation/history.phtml

  • Due to the deprecation of the getConfig() method in Hyva\Checkout\ViewModel\Navigation, we have made minimal logic changes to this template file.

Hyva_Checkout::navigation/place-order.phtml

  • Due to the deprecation of the getConfig() method in Hyva\Checkout\ViewModel\Navigation, we have made very minimal logic changes to this template file.

Deprecations

Hyva\Checkout\Model\Session

  • Stepping management has been taken over by the Navigator. The current state of the checkout is no longer stored in the session. Instead, it is now handled by the page route itself.

Hyva\Checkout\Controller\Index\Index

  • The requiresReinitialization() method has been deprecated, and its functionality has been transferred to the Hyva\Checkout\Model\Navigation\Navigator.

Hyva\Checkout\ViewModel\Breadcrumbs

  • The getCheckoutConfig() method has been deprecated and replaced by the getNavigator() method, which provides the identical functionality and more.

Hyva\Checkout\ViewModel\Navigation

  • The getConfig() method has been deprecated and replaced by the getNavigator() method, which provides the identical functionality and more.

Changelogs

Changelogs are available from the CHANGELOG.md in the codebase, or here in the docs.

Known Issues

  • ReferenceError: Magewire is not defined on page reload

This issue occurs when checkout/index is still within the Theme Fallback settings. To resolve this issue:

1. Navigate to Stores > Config > Hyva Themes > Theme Fallback.
2. Remove `checkout/index`.