New answers tagged

0

You need to override _ajax function of vendor/magento/module-checkout/view/frontend/web/js/sidebar.js in your custom theme and add code to reload page after removing item from minicart as below .done(function (response) { var msg; if (response.success) { callback.call(this, elem, response); window.location.reload(true);// ...


0

Background: I had issue in Magento 2. I found out form_key was coming null in parms. Due to which below condition in execute() method if (!$this->getFormKeyValidator()->validate($this->getRequest())) { return $this->resultRedirectFactory->create()->setPath('*/cart/'); } stops action of removing item from mini cart ...


0

Background: In my case, I found out form_key was coming null in parms. Due to which below condition in execute() method if (!$this->getFormKeyValidator()->validate($this->getRequest())) { return $this->resultRedirectFactory->create()->setPath('*/cart/'); } stops action of removing item from mini cart dropdown. I also ...


0

I've made this into a Module for anyone that would like to use it! Can be found here - https://github.com/joeyoung658/Magento2-DisableMoblieMiniCart Based on @renon-stewart response!


0

use below logic in minicart wrapper area <span data-bind="css: { empty-cart: !!getCartParam('summary_count') == false }"></span>


Top 50 recent answers are included