Upgrading to 1.2.7
Version 1.2.7 introduces improvements for Hyvä Enterprise and includes bug fixes.
When upgrading your Hyvä Theme to 1.2.7, always update the hyva-themes/magento2-theme-module package to its latest version.
It is safe to update the Hyva_Theme module (hyva-themes/magento2-theme-module) to the latest version, even if you are not updating the Default Theme to 1.2.7.
Backward incompatible changes
There are no backward incompatible changes in release 1.2.7.
Noteworthy changes
Updated reset-theme to 1.1.5
The hyva-themes/magento2-reset-theme version constraint is now >=1.1.5.
If reset-theme is a dependency in your root composer.json, ensure you include it in your update.
Composable header customer-account menu
Note: This feature was released in version 1.3.2 of the main branch.
Previously, adding links to the Magento_Customer/templates/header/customer-menu.phtml template required overriding the template, often leading to conflicts with third-party extensions.
Now, you can add links by declaring child blocks in the layout XML for either the header.customer.logged.in.links or header.customer.logged.out.links blocks.
Existing customer-menu.phtml templates from previous Hyvä Themes releases will still function. However, they will not render links added via Layout XML. Consider migrating customized customer-menu.phtml templates to the new approach to utilize this functionality.
For example:
<referenceBlock name="header.customer.logged.in.links">
<block name="customer.header.orders.link"
class="Hyva\Theme\Block\SortableItemInterface">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="sort_order" xsi:type="number">30</argument>
</arguments>
</block>
</referenceBlock>
For more details on adding links, headings, and delimiters to the customer header menu, refer to the documentation.
Changelogs
Access changelogs in the CHANGELOG.md file within the codebase, or via these links:
Tooling
Refer to the Hyvä Theme upgrade documentation for helpful upgrade information.