[Bug] The checkout page. Incorrect email.
Preconditions and environment
Module: hyva-themes/magento2-hyva-checkout v1.1.23
Steps to reproduce
- Add an item to the cart.
- Open the checkout page.
- Enter a correct email in the email field.
- Fill in all the required fields to continue and complete the checkout process.
- Click the "Checkout" button.
Expected result
The checkout process should be completed successfully.
Actual result
An error occurs: "Your email is incorrect."
Additional information
In older versions of this module, the checkout process works correctly. However, in the latest version, the relevant code was removed.
Old Version: hyva-themes/magento2-hyva-checkout v1.1.10
Relevant Code (from v1.1.10):
vendor/hyva-themes/magento2-hyva-checkout/src/Model/Form/EntityFormSaveService/EavAttributeShippingAddress.php:102 vendor/hyva-themes/magento2-hyva-checkout/src/Model/Form/EntityFormSaveService/EavAttributeBillingAddress.php:100
if (isset($data[QuoteAddressInterface::KEY_EMAIL])) {
$quote->setCustomerEmail($data[QuoteAddressInterface::KEY_EMAIL]);
}