Closed a-litvin closed 1 year ago
Hi and thanks for raising this issue. We'll have a look at it! Disclaimer: This could take a while, we're a bit low on Magento dev resources right now. Also, would you be willing to try out any code changes we may implement in Amasty Checkout for us? We try to be as compatible as possible, but have limited testing capabilities with third party plugins.
Hello @a-litvin , based on your comment I developed a change here: https://github.com/PAYONE-GmbH/magento-2/pull/466
Does this fix your issue?
Hi @FatchipRobert
As I remember the fix we did on our site is exactly the same :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In _view/frontend/templates/redirectreturn.phtml in line 33 we have a customerData::invalidate call:
customerData.invalidate(['cart', 'checkout-data']);
Now sure about how it works in clear Magento, but we have an issue in our Magento 2.4.3 and Amasty One Step Checkout. The reason is that customerData object is not initialized at this moment, that means, a storage is also not initialized and customer-data.js fails on line 178 on storage.remove call.The issue may be fixed by wrapping the code by customerData.getInitCustomerData().done() construction. It might look like:
if (typeof customerData.getInitCustomerData === "function") { customerData.getInitCustomerData().done(function () { redirectCancellation(customerData, checkoutData); }); } else { redirectCancellation(customerData, checkoutData); }