Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
15
votes
3answers
3k views

magento 2 remove mini cart item page reload?

How can I reload the page when I remove mini cart item ? I know it's Magento 2 bug. On the checkout cart page there are many products In mini cart as well as In checkout cart page when I remove In ...
12
votes
2answers
22k views

I want to customize my minicart in Magento 2. I need to add 3 attributes

I want to customize my minicart in Magento 2. I need to add 3 attributes: SKU, Manufacturer, and Manufacturer part number. These are existing attributes. I see where to add the output values but not ...
12
votes
2answers
9k views

Magento 2 Add to cart frontend event listener

I am trying to find good solution to execute custom javascript when product is successfully added to cart. Also this custom javascript need information about product that was added to cart (sku, qty, ...
11
votes
4answers
21k views

Magento 2 Get Cart Quote Total in minicart.phtml

I'm trying to get the cart quote total in minicart.phtml, but I'm having no luck. I'm injecting Magento\Checkout\Model\Cart. Here's my code: $this->cart = $cart; $cartQuote= $this->cart->...
11
votes
1answer
7k views

How to add "Empty Cart" button to minicart

How can you add an "Empty Cart" button to the minicart in Magento 2. Is it possible with layout xml?
10
votes
2answers
7k views

Getting the product SKU in the header mini-cart

I want to be able to display the product SKU in the mini-cart of a Magento 2 site. But I'm not sure how to use KnockoutJS to pull in additional product information. The template that is being called ...
9
votes
1answer
6k views

Magento 2 show normal price with special price on minicart

I can set Normal price along with Special price while put custom function in core file vendor/magento/module-weee/Block/Item/Price/Renderer.php public function getUnitItemPriceExclTax() { $...
9
votes
2answers
2k views

Magento 2 How do I sort mini cart items?

I am trying to sort the items based on the product ordered qty. Is there any logical method to the way cart items are sorted by ordered qty?
8
votes
1answer
4k views

Mini-Cart displaying Configurable Product Image instead of simple Product Image Magento 2

While adding product variations from configurable product, in mini cart it displays only configurable product image, how to show simple product image instead of current parent image.
8
votes
1answer
2k views

Difference between Minicart and Cart in Magento 2

I want to know the difference between Mini cart and Cart in details.
8
votes
1answer
15k views

Unable to process binding Knockout.js magento 2

I have created a new theme in Magento 2 and rewritten minicart.phtml, but when adding product to cart, mini-cart does not show items and have error JS (knockout.js) like this: Uncaught TypeError: ...
7
votes
7answers
10k views

Magento 2, Change On hover instead of 'click' for mini cart

In magento 2. For mini cart and store switcher, they are dropdown with click. How to change on hover instead of 'click'. I had tried with jquery trigger click, but It don't work.
7
votes
2answers
22k views

remove items from cart in controller - magento2

I need to remove all the items from cart, below method remove the items in chenckout/cart/index page but header minicart section still dispaly the items even after refresh page too. I have try this ...
6
votes
6answers
7k views

Magento 2: How to remove Paypal Logo from MiniCart & Shopping Cart Page?

I'm using Magento 2 CE with Porto Theme. Also referred but it's for Magento 1 How to remove paypal express checkout link from mini cart in right column I have tried from Admin Paypal Settings. But ...
6
votes
8answers
7k views

Form Key Error when removing a product from Mini cart

So this is a problem that I have been trying to solve for a few days now. I'm not an expert at this, but I manage quite a bit through googling and testing myself. My website is more or less ready to ...
6
votes
1answer
4k views

Magento 2 - How to show tax and shipping costs in mini-cart pop up

How to show tax and shipping costs in mini cart popup in Magento 2?
6
votes
4answers
7k views

Display total price and total items in minicart

I have installed magento 2.0.7 and overide the template minicart.phtml to my custom theme. I want to show total price and total items in the header minicart like the below image
6
votes
1answer
571 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 ...
5
votes
6answers
14k views

Magento 2 Open minicart when item is added

I have a relatively stock minicart implementation, and I wanted to know if there is a configuration option or some other way of setting up the mini cart to drop down (open) when an item is ...
5
votes
1answer
5k views

How to modify minicart.js Magento 2?

Without editing the core file, I want to add some code to minicart.js so I tried overriding the minicart.js file in my theme by this: var/www/animals/app/design/frontend/Dogs/husky/Magento_Checkout/...
5
votes
3answers
4k views

Magento 2 : Get custom product attribute in minicart

In my magento 2 store I need to return and print a custom product attribute in mini cart for each product in the cart. But it seems data are load using KO js so I have no idea , how to get attribute ...
5
votes
4answers
3k views

When Adding a product to cart programatically ,the price of the product becomes zero ($0.00) [duplicate]

When Adding a product to cart programatically ,the price of the product becomes zero ($0.00) on the fist time , but on adding the same item to the cart, it shows the price . The product adding is ...
4
votes
5answers
7k views

Magento2 Minicart showing blank count

When I open the page in Private Browsing / Quote no initialize at that time it show the empty value in minicart count, but it should show 0. If I add product(s) in cart then I can see the number of ...
4
votes
1answer
6k views

Magento 2 Minicart - Display line item subtotal rather than unit price

In the Magento 2 mini cart I would like to display the line item subtotal rather than unit price. So in the example below the price in the minicart should be $90 because I've added two watches to the ...
4
votes
2answers
3k views

Update quantity in minicart

I want to add Quantity increment / decrement buttons in header minicart. For that I have added divs as follows <div class="more">+</div> <input ...
4
votes
2answers
588 views

How to call rewards block phtml content into minicart section magento 2?

Magento 2 Enterprise, With Magento Reward module, Inside layout file checkout_cart_index.xml file with reward block is defined as below. <block class="Magento\Reward\Block\Tooltip\Checkout" name=...
4
votes
2answers
1k views

RWD mini-cart: How to reload cart page if product removed via mini cart?

I am having UI issues with the mini-cart and the RWD theme. Test 1: Add Item to cart, then click on Mini-Cart in top right corner and select "View Shopping Cart". Once on the shopping cart, ...
4
votes
5answers
7k views

Magento 2 : How to clear mini cart programatically

I am using this solution and get referenece from Here. But It dose not update mincart after page refresh. Although it deletes items from quote_item table. I am also trying deleting quote id from ...
4
votes
2answers
8k views

How can I get discount amount and grand total amount in mini cart ? (Magento 1.9)

I would like to display discount amount and grand total (including discount) in mini cart with Magento 1.9 instead of sub total. I didn't find out how to display discount (cart price rule without ...
4
votes
3answers
915 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 ...
4
votes
1answer
1k views

Magento 2 | Mini Cart has items but cart is empty | Session problem? | Double clicking on "Proceed To Checkout" redirects to an empty cart

I have a weird problem where my mini-cart is showing that there are products in the cart, however, cart is showing empty. Also, when refreshing the checkout a few times, it redirects to the cart with ...
4
votes
1answer
3k views

Magento and Varnish (Turpentime) Mini Cart is being cached

I've just configured correctly the Varnish cache, finally, but now I ran into some issues... I've notices, at the moment one important error and can't get to fix it. The thing is that the Mini Cart ...
4
votes
1answer
3k views

Magento 2: How to update mini cart after add product to cart from API?

I'm working on a task that need an API endpoint for adding product to cart in Magento 2. My code do the job "add product to cart" properly (it add product to cart and when I go to .../checkout/cart I ...
4
votes
2answers
62 views

broken minicart - urgent

I have attempted to edit the minicart on our webstore, however this resulted in an error occurring which seems to be quite common but no one seems to have an easy fix. The minicart now outputs a JS ...
4
votes
0answers
412 views

Zero price for first item in mini cart

I created a controller to add configurable product to cart but when i try to reload the minicart dynamically using javascript or even refresh the page in product detail page it shows the wrong price ...
4
votes
2answers
1k views

mini cart not showing items

I have installed magento 2.0.7 and override minicart.phtml file in my custom theme. After adding product in cart ,click on the Minicart icon in the header, the content area of the minicart displays ...
3
votes
3answers
11k views

Adding quantity increment button in cart and mini cart

I need to add a quantity increment button in cart page and mini cart popup like this. I added the button but I can't assign the functionality. This is what I did app/code/Amsi/UserManagement/...
3
votes
3answers
4k views

Magento2, echo product attribute in minicart

How can I access product attribute to echo it in minicart /web/template/minicart/item/default.html Like below works for cart page templates/cart/item/default.phtml <?php $product = $_item->...
3
votes
2answers
6k views

Magento 2 : Show cart items total to header cart link

I want to display cart items total to my header cart link. I have get some reference from https://magento.stackexchange.com/ but not any solution work for me. Some are works but only it will display ...
3
votes
2answers
1k views

Magento 2 : Minicart disable quanity box

How can we initially disable quantity box (read-only) of mini cart and enable it while clicking edit link for each separate product ?
3
votes
1answer
2k views

How do I get the discount amount in the minicart for 1.9?

In the minicart of 1.9, the total is produced by $this->getSubtotal(). See file app/design/frontend/rwd/default/template/checkout/cart/minicart/items.phtml. That total does not subtract any potential ...
3
votes
1answer
3k views

Magento 2: Minicart Failed to load the "Magento_SalesRule/js/view/payment/discount" component

I am working on MiniCart Extension in which I need a coupon code text box in my Minicart. For that I have overridden default.xml in my Custom Module but everytime It returns following error in the ...
3
votes
1answer
2k views

How to change process to checkout url of minicart in Magento 2.2.1

I want to change "Process to checkout" url of minicart with custom theme. I override content.html in my custom theme but I don't know how we change url of button. <div class="actions" if="...
3
votes
1answer
966 views

Fatal error: Uncaught Error: Call to a member function setSkipRenderTag() on boolean in Minicart.php

We have been getting this error every now and then: PHP Fatal error: Uncaught Error: Call to a member function setSkipRenderTag() on boolean in .../app/code/core/Enterprise/PageCache/Model/Container/...
3
votes
2answers
4k views

On hover instead of 'click' for mini cart and top account buttons in Magento RWD theme

Where do i have to change the jQuery functionality to show the drop downs from the 'mini cart' and the 'top-account' on hover instead of click on the desktop versions? Thanks!
3
votes
1answer
1k views

Magento 2 how to get product name and qty in mini cart

Magento 2 how to get product name and its qty in mini cart when we add to mini cart
3
votes
1answer
3k views

Magento 2 - Product names with special characters

Products having special characters like TM, I am importing products using &trade; for TM, it appears as expected on product detail and listing page. But when the product is added to cart, in mini-...
3
votes
2answers
349 views

Minicart starts Spinning after few days on adding product

I am Using my Own custom theme extended from LUMA theme and in that I have extended checkout module, done some modifications like bringing CHECKOUT button in the bottom as it comes at the top. Added ...
3
votes
2answers
2k views

How to move Checkout button to the bottom of minicart

I've been trying to move the "Go to check button" to the bottom of the minicart, as this example but I have had no success. I've done this kind of changes in ver.1.9.1 with no problem. What am I ...
3
votes
1answer
268 views

Magento2: black screen after display mini cart

After opening the mini cart, everything works correctly in every place on the site. But we have issue after display mini cart in checkout. (after close mini cart stays still black screen): here is ...

1
2 3 4 5
10