Closed Shiriaev closed 3 years ago
Good afternoon Pavel !
Yeah, we know about this issue which has appeared in 1.38.0 We're already in process of fixing this and issue is related not only to guest flag you've mentioned.
Anyway, thanks a lot for your advise !
Good morning Pavel !
The fix has been released within scope of https://github.com/buckaroo-it/Magento2/releases/tag/v1.38.1
Thanks again for addressing that issue to us !
The error appear in the cart when you cancel your order on payment gateway page and then return to cart.
Step to reproduce:
The reason for this behavior lies in the quote activation mechanism after an order is placed and then cancelled.
After order cancellation on the payment gateway, the user is redirected to the controller
\Buckaroo\Magento2\Controller\Redirect\Process
, where the quota of cancelled order is duplicated.The duplicate process in the
\Buckaroo\Magento2\Service\Sales\Quote\Recreate::duplicate
creates a guest quote which is then merged with the cancelled order quote. As a result, in the new quotecustomer_is_guest = 1
(apparently, this is a consequence of the merge mechanism), which is the reason for the error. In this case address can not pass the validation in\Magento\Quote\Model\QuoteAddressValidator::validateForCart
As a quick fix, we can get
sustomer_is_guest
value and set it to the new quote in\Buckaroo\Magento2\Service\Sales\Quote\Recreate::duplicate
: