You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Let's say you want to accept Ecocheques as payment method. You have a custom attribute with drop down values for each of the voucher types. When you have a mix of products with 'none' and 'eco', the Voucher payment method is shown despite full payment not being possible for the quote.
Used versions
Magento Version number(eg 2.3.5): 2.4.7-p3
Open source/Enterprise/B2b: Open source
Mollie version number (Check configuration): 2.45.0
To Reproduce
Steps to reproduce the behavior:
Configure a custom attribute called voucher_type and add the voucher type dropdown values to possible values
Add the attribute to the relevant attribute sets
Configure voucher type payment method to use custom attribute and select voucher type attribute.
Configure a product with 'eco' voucher type drop down value.
Configure a different product with 'none' voucher type drop down value.
Go to the frontend and create a cart with both products.
Proceed to checkout.
Expected behavior
When checkout is reached, we expect the voucher payment method to not show.
Actual behavior
Voucher payment method shows
Additional context
I believe the issue is caused here:
Describe the bug
Let's say you want to accept Ecocheques as payment method. You have a custom attribute with drop down values for each of the voucher types. When you have a mix of products with 'none' and 'eco', the Voucher payment method is shown despite full payment not being possible for the quote.
Used versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When checkout is reached, we expect the voucher payment method to not show.
Actual behavior
Voucher payment method shows
Additional context
I believe the issue is caused here:
magento2/Service/Quote/QuoteHasMealVoucherProducts.php
Line 35 in 1c1184d
return count($itemsWithCategories);
Should likely be changed to:
return count($itemsWithCategories) === count($cart->getItems());
The text was updated successfully, but these errors were encountered: