[Issue] Guard Magento_Catalog JavaScript from lack of minicart #34513
Labels
Area: Cart & Checkout
Component: Catalog
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Projects
This issue is automatically created based on existing pull request: #34185: Guard Magento_Catalog JavaScript from lack of minicart
Description
When the mini-cart is removed, or during the checkout,
Magento_Catalog::js/product/storage/ids-storage-compare.js
throws an error. The error is masked during checkout because there is a DOM element withid="checkout"
which some browsers make available onwindow.checkout
(so there's no error but the information assumed to be present isn't there).This pull request changes the guard logic to protect against this error.
Edit: I found three more places where the lack of minicart causes errors. The minicart.js itself also suffers from this assumption, but I chose to not patch that here.
Related Pull Requests
None
Manual testing scenarios (*)
<referenceBlock name="minicart" remove="true" />
)Questions or comments
None
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: