-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window.checkout is undefined if minicart is removed #1458
Comments
Internal ticket: MAGETWO-39865 |
@Zaylril, internal ticket is fixed and already available in develop branch. Please, check the fix, if something doesn't work for you, feel free to reopen this issue. |
In 2.0.6, this problem still persist, I can't use search's autocomplete, if mini-cart is not on the page, due to window.checkout.autocomplete is undefined. |
In 2.1.0, this problem still persist. If I hided minicart in header (in default.xml layout) the similar errors are showed in console:
in defaultCaptcha.js (line 29, col 17) |
In 2.1.1, this problem still persist. |
window.checkout.autocomplete is undefined if you remove the minicart... still |
Does anyone know what the minimum amount of blocks you need to add to make this work? |
I worked around this by not removing the minicart block in the layout, but overriding the template file Magento_Checkout/templates/cart/minicart.phtml; the contents of the new file:
|
2.1.1 here and the problem still persists. Has anybody discovered a workaround for this? |
I had to solve it quickly yesterday. Put it in the layout you need :
|
[plankton] MAGETWO-70819: Widget with condition "special date to"
Hey,
When building the cart/checkout page on my current theme, i've removed the minicart from the cart page in the header. However this results in me now getting an error when clicking proceed to checkout as the checkoutUrl is undefined in the window.checkout object.
You should be able to proceed to the checkout without having the minicart available on the page (I've just had to hide it for now with css rather than remove).
Thanks
The text was updated successfully, but these errors were encountered: