Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
3
votes
1answer
95 views

Magento 2 Mini-cart doesn't close when click on outside in iPhones

How can we close the mini cart popup on Magento 2? (clicking outside is not working). I have already tried the following method on footer.phtml. It's working on android phones and browsers but iPhones,...
1
vote
0answers
125 views

Magento 2 : Shopping cart is empty but Display product in mini cart

I have work in Local Environment. I had install multiple Magento version in my local environment. I have two Magento project of version 2.3.0 and 2.3.1. When I had Add one product in Mage231 project ...
1
vote
1answer
50 views

KnockoutJS Which Model does the Minicart use?

So, i'm very new when it comes to using KnockoutJS but i've been doing some reading around it and to my knowledge each template file has its own corresponding model. However, as i'm looking through ...
0
votes
1answer
118 views

magento 2 how to show minicart in custom Popup?

magento 2 how to show minicart in custom Popup ?
1
vote
0answers
19 views

Magento 1.9 open header mini cart when product is added to cart

I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded. I use the default ...
1
vote
2answers
89 views

Magento 2 Execute jQuery when minicart is done loading

I'm having the problem currently where I need to run some jQuery on my Minicart. However, I can't select anything from the Minicart because the jQuery is executing before the Minicart is actually ...
1
vote
0answers
143 views

Magento 2 how to get current cart details and customer cart details?

In Magento 2 how to get current cart details without customer login and get cart details with customer login like minicart ? I checked with this \Magento\Checkout\Model\Cart & \Magento\Checkout\...
1
vote
0answers
29 views

Magento2: Minicart issue on Custom layout

I am using a custom layout for the category page. Here is my code: app/code/Custom/Module/view/frontend/page_layout/equipment.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www....
1
vote
1answer
41 views

move minicart before top.search magento 2.2

I have moved the mini cart before top.search using below code in my theme under app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml <?xml version="1.0"?> <page ...
0
votes
0answers
117 views

how to get custom table data in block in magento 2.3

I want to display the custom table data in cart page in magento2 for this I have to override the layout file and through that block is calling in that block I am trying to getting the model collection ...
2
votes
1answer
216 views

Magento 2 I Want to add Dropdown Quantity Box In Minicart

I am trying to replace Dropdown instead of text box at Quantity at Minicart. I tried following code but didn't get success ( i am trying direct in Magento Vendor folder for testing purpose). ...
1
vote
0answers
20 views

Bulk add to cart function issue

I added multiple products in the cart using this below script. <script> require(['jquery'], function (jquery) { document.getElementById("add").addEventListener("click", function () {...
1
vote
2answers
255 views

Magento 2 Change Minicart Product Image from thumbnail to regular image

After editing the minicart for a couple of days now i've noticed that the images are smaller versions of the images that you would see on the product pages. This means as i'm upscaling them to fit a ...
4
votes
1answer
675 views

Difference between Minicart and Cart in Magento 2

I want to know the difference between Mini cart and Cart in details.
2
votes
0answers
36 views

How to access Magento 2 shipping & cart total in custom sidebar?

I am building a custom Magento 2 right sidebar module. It will bring sidebar panel from right when a new item is added. I can access all cart items data from default js modules except Shipping Total ...
1
vote
1answer
322 views

Magento 2 Minicart content not displaying

I'm working on developing my own theme by extending the Magento Blank theme. I'm trying to add the minicart to my header.phtml file. I'm loading the minicart in my header like so: <?php echo $...
1
vote
1answer
157 views

Magento 2 Ajax call not working

I am trying to update whole minicart content but my ajax call is not working $.ajax({ url: "my_controller_url", type: "POST", success: function (result) { $(".minicart").html(...
1
vote
3answers
2k views

how to add quantity increment and decreament (+ and - button) in minicart magento 2?

actually i am trying to add quantity increment and decreament (+ and - button) in minicart magento 2.3. If anyone have any idea please guide me.
1
vote
1answer
174 views

Magento2: How to get Grand total and Shipping total in Minicart

Show grand_total and ShippingTotal in mini-cart without creating or using any module.
1
vote
2answers
80 views

Mini cart with zero price for all the configurable products except first item

While adding set of configurable products to cart, it gets added and showing correct data in checkout/cart page, whereas in mini cart it is showing zero price for all the configurable products except ...
1
vote
1answer
193 views

Magento 2 Minicart Ajax update

I need to update mini cart without the need to click on update button (just clicking on +/- button) I can't find module or code to do that!
4
votes
2answers
322 views

Magento 2.3 Minicart check if subtotal is above value

I want to check inside my /app/design/frontend/theme/theme/Magento_Checkout/web/template/minicart/subtotal/totals.html file if the subtotal is larger than 29.95. I want to display some additional ...
2
votes
1answer
470 views

Magento 2: How to disable Quantity Box for specific product from checkout cart and minicart

How can we disable Quantity Box for specific product from checkout cart and minicart? I have already search for the solution but it will disable quantity for all products reference URL Your help ...
1
vote
3answers
310 views

How to show base image on minicart in magento2.1.7?

I want to show base image in minicart and checkout, Right now it is showing thumbnail images in magento2.1.7 I don't have any thumbnail images for my product so I need to point it as base image. Any ...
1
vote
1answer
141 views

Magento2: mini-cart not empty after programmatically placing an order on success page

I have a custom payment gateway module. When you click on the Place Order button on checkout, it redirects you to an external payment page & after that you return to a custom controller on that ...
0
votes
1answer
42 views

Move Minicart responsive

we are using Magento 2.2.6 an rebuilding the desing. We plan to move the minicart when the width is small (on smartphones). But we cant do this with css. When we initialize the minicart twice in phtml ...
1
vote
3answers
1k views

Magento 2 override minicart.phtml in custom module

I'm trying to override minicart.phtml file from Magento2\vendor\magento\module-checkout\view\frontend\templates\cart\minicart.phtml to my custom module Magento2\vendor\XXXX\YYYY\view\frontend\...
2
votes
2answers
365 views

How to update Minicart count after remove product Programatically on cart page

I have created automatically remove product with a specific ID Functionality. So when the customer removes any product my specific ID product will be automatically removed. I have done below code ...
0
votes
0answers
33 views

JS Error breaks Minicart in developer mode only Invalid template file

I'm working on a project and I'm getting the below browser console error only in developer mode when I add an item to the cart Invalid template file: 'cart/item/price/sidebar.phtml' in module: '...
1
vote
3answers
333 views

Cart details not getting in mini cart

For some purpose (something like popup) I'm trying to fetch cart details in minicart.phtml from Magento2\vendor\magento\module-checkout\view\frontend\templates\cart\minicart.phtml. I directly ...
0
votes
0answers
14 views

How to call a template after minicart is loaded in magento 2

How to call a template after minicart is loaded in magento 2 I wish to call the template for all the pages after the quote is created. So please provide me a solution to cal a template after the quote ...
1
vote
0answers
289 views

Mini cart content not rendering properly in Magento 2?

I am using Magento 2.3 I have custom header and I have added minicart in the header but the issue is that content is not rendering in minicart properly. Please refer below screenshot: As you can ...
0
votes
0answers
62 views

Magento 2 weird error

When I click this setting icon I get this following error. 1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested product doesn't exist Exception #0 (Magento\...
0
votes
0answers
19 views

magento 2.18 minicart does now show

I use Magento 2.1.8 and some time mini cart does not show on page (each page) this is mini cart image and console log
0
votes
0answers
209 views

How to add minicart in cms block magento 2

I tried adding this shortcode to my cms block {{block class="Magento\Checkout\Block\Cart\Sidebar" template="Magento_Checkout::cart/minicart.phtml"}} but it doesn't show the minicart dropdown when ...
6
votes
1answer
248 views

Magento 2 : How to reload minicart from Plugin?

I've written plugin for Magento\Checkout\Controller\Cart::Delete Plugin works great and removed my desirable product from cart. As much as I know Minicart is render with local storage. So that we ...
0
votes
0answers
44 views

Magento 2 : Remove Specific Product From All Active Carts

i am trying to remove specific product from all active carts. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $objectManager->get('Magento\Framework\App\...
1
vote
0answers
63 views

Magento 2 display color Attribute value in Minicart

I have added a config product which have two attributes size and color.Size attribute is displaying in see detail section but color is not displaying in mini cart detail section. Please let me know ...
1
vote
1answer
395 views

How to insert a UI component into the mini cart?

I'm trying to add a message in the minicart, but: The message depends on some external API calls I have to make at page load I can't figure out how to pass data to my UI component when it's inserted ...
1
vote
1answer
91 views

Floating fixed position cart

I need to add floating cart with product count in my site(screenshot_1). Which is now in header minicart. I need to fix minicart in right side of my site. How I can do that? screenshot_1
1
vote
1answer
204 views

Cart items are not updating when same product is added multiple time

When an item of same type is added to cart more than one, the drop down cart preview still shows "1 item in cart". I am working in magento 2. Please help me how to fix this issue. Thanks
1
vote
1answer
149 views

Mini Cart Not Working in Mobile view in magento 2

For Mobile view, I have added the items in the cart, the mini cart icon shows the product count correctly, But it will fail to trigger the minicart-wrapper class which means while clicking the cart ...
0
votes
2answers
279 views

Magento2: How to redirect minicart on checkout cart page?

How can I redirect on checkout cart page once I click on Minicart instead of toggle.
3
votes
1answer
199 views

When login with social login mini cart count is not updating in Magento 2

When login with social login like Facebook, Gmail, the mini cart items count is showing 0 and when I click on cart page then it will reload the count. In Default Magento Login is working fine. ...
0
votes
2answers
181 views

Magento 2: Customer logout after minicart showing product

I have facing issue in Magento ver. 2.2.4 while customer logout then still showing product to the cart. Actual Result: Step 1) Login to the customer. Step 2) Add product to the minicart. Step 3) ...
0
votes
1answer
271 views

Magento 2.2.2 getting error unable to process binding if: function(){return getCartParam('summary_count') }

I am getting an error like unable to process binding if: function(){return getCartParam('summary_count') } in magento 2.2.2 I tried below commands php bin/magento setup:upgrade && php -...
0
votes
1answer
113 views

Magento 2 - display custom product attribute instead of the price in minicart

I try to display a custom product attribute instead of the price in minicart. I saw that the html file that I have to override is price.html from module_checkout. price.html : <!-- ko ifnot: ...
2
votes
0answers
117 views

Mini Cart Update issue

I am facing mini cart update issue - to replicate the issue you need to browse the site and add a product to the cart - then continue shopping. If you press checkout (instead of continue shopping) the ...
2
votes
1answer
1k views

How to extend sidebar.js to perform action on Qty change in Minicart Magento 2

I added a text field Box in minicart that need to perform some calculation on keyup to update Qty. I Added box field by modifying module-checkout/view/frontend/web/template/minicart/item/default....
1
vote
2answers
126 views

Magento 2: Cant get custom attribute when configured in catalog_attributes.xml file for mincart

I need to get a custom attribute value to Min cart, But I am missing some thing on the catalog_attributes.xml to get the attribute value. di.xml <?xml version="1.0" encoding="UTF-8"?> <...