hyva-themes / magento2-react-checkout

Highly Customizable Checkout for Magento 2, Built with React.
BSD 3-Clause "New" or "Revised" License
180 stars 54 forks source link

Feature: Add hyva_react_checkout_config event to be able to alter the checkout config #317

Closed michielgerritsen closed 2 years ago

michielgerritsen commented 2 years ago

Recently in version 1.1.2 the ability to support shipping methods was added, which is great. For some shipping methods implementations, we need access to configuration items. In the regular Magento checkout, any module can dump any setting into the window.checkoutConfig configuration. The current React checkout only passes the payment configuration.

In this PR, I've added an event that allows developers to extend the checkoutConfig however needed.