Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
15 votes
3 answers
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 ...
user avatar
  • 3,685
13 votes
3 answers
24k 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 ...
user avatar
12 votes
2 answers
11k 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, ...
user avatar
11 votes
4 answers
22k 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->...
user avatar
  • 1,471
11 votes
1 answer
8k 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?
user avatar
  • 4,643
10 votes
2 answers
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 ...
user avatar
  • 4,173
9 votes
1 answer
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.
user avatar
9 votes
1 answer
7k 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() { $...
user avatar
9 votes
2 answers
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?
user avatar
8 votes
7 answers
12k 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.
user avatar
  • 343
8 votes
1 answer
2k views

Difference between Minicart and Cart in Magento 2

I want to know the difference between Mini cart and Cart in details.
user avatar
  • 2,162
8 votes
1 answer
17k 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: ...
user avatar
  • 357
7 votes
6 answers
8k 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 ...
user avatar
  • 9,513
7 votes
2 answers
26k 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 ...
user avatar
  • 9,549
6 votes
8 answers
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 ...
user avatar
  • 163
6 votes
1 answer
5k 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?
user avatar
  • 2,184
6 votes
4 answers
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
user avatar
  • 617
6 votes
1 answer
815 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 ...
user avatar
  • 3,674
5 votes
6 answers
16k 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 ...
user avatar
  • 197
5 votes
1 answer
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/...
user avatar
  • 179
5 votes
3 answers
5k 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 ...
user avatar
5 votes
4 answers
4k 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 ...
user avatar
4 votes
5 answers
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 ...
user avatar
4 votes
1 answer
7k 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 ...
user avatar
  • 4,643
4 votes
2 answers
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 ...
user avatar
  • 8,648
4 votes
2 answers
3k views

Add custom product attribute to mini-cart

I have to use a custom product attribute in the mini cart and the full cart view. After creating the file /etc/catalog_attributes.xml in my module folder i could read my custom attribute in the full ...
user avatar
  • 65
4 votes
2 answers
639 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=...
user avatar
4 votes
2 answers
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, ...
user avatar
  • 63
4 votes
6 answers
8k 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 ...
user avatar
  • 911
4 votes
2 answers
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 ...
user avatar
  • 43
4 votes
3 answers
1k 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 ...
user avatar
  • 1,498
4 votes
1 answer
2k 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 ...
user avatar
  • 2,759
4 votes
1 answer
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 ...
user avatar
4 votes
1 answer
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 ...
user avatar
  • 475
4 votes
2 answers
69 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 ...
user avatar
4 votes
0 answers
431 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 ...
user avatar
  • 1,682
4 votes
2 answers
2k 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 ...
user avatar
  • 617
3 votes
5 answers
13k 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/...
user avatar
3 votes
2 answers
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 ...
user avatar
3 votes
3 answers
5k 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->...
user avatar
  • 2,009
3 votes
2 answers
4k 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 ...
user avatar
3 votes
2 answers
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 ?
user avatar
3 votes
1 answer
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 ...
user avatar
  • 113
3 votes
1 answer
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 ...
user avatar
3 votes
1 answer
3k 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="...
user avatar
  • 729
3 votes
2 answers
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!
user avatar
  • 483
3 votes
1 answer
2k 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
user avatar
3 votes
1 answer
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-...
user avatar
3 votes
2 answers
3k views

Loading Javascript for minicart in Magento 2

I want to make certain customization in minicart, for that purpose I have created a module which overrides Magento_Checkout/template/minicart/item/default.html. Overriding html I have created a ...
user avatar
  • 1,933
3 votes
2 answers
400 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 ...
user avatar
  • 5,719

1
2 3 4 5
10