Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
13 votes
3 answers
27k 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 ...
Matthew McLennan's user avatar
10 votes
2 answers
8k 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 ...
circlesix's user avatar
  • 4,273
0 votes
3 answers
15k views

I want to add popup notify after adding products Magento 2

I wanted to Add notify popup form after adding the products but I couldn't get the file in magento 2. I need someone help who already done this work.
Shakib Rahman's user avatar
2 votes
3 answers
14k views

How to update minicart view using AJAX?

Is there any way to update the mini cart view? Now I'm using: require([ 'Magento_Customer/js/customer-data' ], function (customerData) { alert("hola"); ...
Miguel's user avatar
  • 569
12 votes
2 answers
10k 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?
Holly's user avatar
  • 4,873
11 votes
4 answers
23k 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->...
Paul's user avatar
  • 1,501
8 votes
9 answers
13k 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.
Mr Tim's user avatar
  • 343
7 votes
3 answers
29k 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 ...
Bilal Usean's user avatar
  • 9,977
5 votes
6 answers
19k 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 ...
Pat Marx's user avatar
  • 207
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?
nuwaus's user avatar
  • 2,314
4 votes
5 answers
8k 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
2 answers
4k 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 ...
Karkan's user avatar
  • 75
3 votes
2 answers
2k 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 ?
Vishal Tanna's user avatar
2 votes
1 answer
306 views

How to add QTY Increasing and decreasing input in minicart hyva theme

add QTY Increasing and decreasing input in minicart hyva theme (same as default magento)
Savan Patel's user avatar
  • 2,348
2 votes
2 answers
3k views

Update Minicart programatically in magento 2

I have create problematically adding number of products at a time in Magento 2 cart and there I can one see one first product in mini cart other products are also in mini-cart but not showing the ...
amith lal's user avatar
  • 790
1 vote
4 answers
9k 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.
Hitesh Balpande's user avatar
1 vote
1 answer
4k views

Magento2 mini cart item delete alert

Can anyone let me know, How an alert box getting delete an item popup, from minicart: location below: line 71: vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js Where defined the ...
shivashankar m's user avatar
1 vote
2 answers
3k views

Display of "Not visible individually" for a simple product in mini cart in Magento 2

I want to display not visible individually simple products in the mini cart section. This product displays inside the cart page, but it doesn't display inside the top minicart section.
Rakesh Jesadiya's user avatar
1 vote
2 answers
2k views

Magento 2 pass php session variable to minicart & hide proceed to checkout

I would like to pass a PHP session variable flag to mini cart-mixin.js dynamically. I followed the below steps mentioned here using the Config Provider concept I am able to pass variable to only cart ...
Nagaraju Kasa's user avatar
0 votes
2 answers
1k views

Add a "My cart" link to the top links

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. I want to add a My cart link to the top links: Clicking this link should make the Ajax cart ...
Razvan Zamfir's user avatar
0 votes
0 answers
245 views

Magento 2:Add another new Custom mini-cart?

I want to add new Minicart like shown in the following screenshot, using KnockOut Js, Give me some logic how can I cater to this problem
Muhammad Abdullah's user avatar
0 votes
1 answer
2k views

Mini cart not show product when add product for first time Magento 2.1

I am using Ultimo Infortis theme. I am facing issue in adding product to mini cart. First time when i click on Add to Cart button, it do not show product in mini cart but on cart page it show added ...
dev tester's user avatar
0 votes
3 answers
2k views

magento 2 don't want to show proceed to checkout button based on custom condition

How to hide Proceed to Checkout button in the mini cart section magneto 2 from custom module based on my condition. For example: if the custom session data is set then hide - ...
Nagaraju Kasa's user avatar
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 ...
Pratik's user avatar
  • 3,805
12 votes
2 answers
14k 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, ...
Sergii Ivashchenko's user avatar
9 votes
1 answer
5k 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.
Krishnakumar C's user avatar
9 votes
1 answer
8k 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() { $...
Ronak Chauhan's user avatar
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 ...
Jackson's user avatar
  • 9,909
5 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 ...
0xh8h's user avatar
  • 485
3 votes
2 answers
1k 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). ...
Bharat Desai - Certified Dev's 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="...
Rahul's user avatar
  • 739
3 votes
4 answers
15k 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/...
Ebin Manuval's user avatar
3 votes
1 answer
2k views

Remove Qty Box from mini cart and the page of checkout page

I have a site to buy a unique product (qty =1) so i need to eliminate Qty from mini cart, i just overrided /web/template/minicart/item/default.html : i removed div Qty but she still there any idea how ...
Developper Magento 's user avatar
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
trilok kumar's user avatar
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!
Meez's user avatar
  • 483
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 ...
Suresh Chikani's 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 ...
Klistrian's user avatar
  • 113
2 votes
2 answers
3k views

How to override getSectionData() method of magento-checkout CustomerData/Cart.php?

Is it possible to overwrite "public function getSectionData()" of class magento-checkout/CustomerData/Cart.php only with the help of Plugin My di.xml <?xml version="1.0"?> <config ...
Ashish Jagnani's user avatar
2 votes
2 answers
8k views

Magento2 catch ajax complete, add to cart

I'm building an custom mini-cart. I want it to update itself when an article is added to the cart. I'm trying to do this by jQuery with catching the ajax complete, but can't get it to work. Can anyone ...
kaptenkrillo's user avatar
2 votes
1 answer
4k views

How to override magento-checkout CustomerData/Cart.php?

I need some changes in CustomerData/Cart.php to have child products added to cart displayed in minicart. Can I make this overrides inside my Theme Folder. I would not like to have my changes smashed ...
deroccha's user avatar
  • 687
2 votes
3 answers
13k views

How to clear cart and minicart programatically in Magento 2?

How to clear cart and minicart programatically in Magento 2?? I am using this code $quoteId = $this->_checkoutSession->getQuote()->getId(); $quoteModel = $this->objectManager->create('...
Hima Mohan's user avatar
2 votes
2 answers
2k 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 ...
Jaimin's user avatar
  • 2,146
2 votes
2 answers
2k 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 ...
Ashish Viradiya's user avatar
2 votes
2 answers
4k views

Add Ajax Quantity Increment and Decrement Button on mini cart in Magento 2

I want to implement Ajax Quantity Increment and Decrement Button functionality on cart items on Minicart. I didn't find any article or any module to achieve this. as qty increment(+) and decrement(-) ...
trilok kumar's user avatar
2 votes
1 answer
2k views

Magento 2.1 Minicart Knockout TypeError

I'm working on a Magento 2.1 project with the Navas theme. I can add products to the cart, but the minicart doesn't show any products.. I can only visit the cartpage by going directly to the page, a ...
FerdiL's user avatar
  • 21
2 votes
2 answers
2k views

Coupon block not displaying inside mini cart

I am trying to add coupon block in mini cart of magento. But the coupon code block is displaying in the content section (also css changed!) \Magento\Checkout\view\frontend\layout\default.xml ...
Sushivam's user avatar
  • 2,629
2 votes
2 answers
2k views

Not able to translate OK and cancel buttons in confirmation popup minicart

After adding an item into cart if we goto mini cart and click on remove item a confirmation popup with Ok and Cancel option will appear. I am not able to translate the Ok and Cancel buttons. Please ...
Dilip Athreya's user avatar
1 vote
1 answer
3k views

Magento 2 Rewrite minicart default.html with phtml

I have created a file app/design/frontend/my_vendor/my_theme/Magento_Checkout/web/template/minicart/item/default.html to write the Magento 2 standard mini cart default.html. And this is working fine. ...
Magento Learner's user avatar
1 vote
1 answer
1k views

How to add Cancel/Ok button within Minicart and remove popup

I want to remove the delete button that is in below screenshot And add to button Cancel/Ok within minicart, not in popup like magneto by default functionality. just want to add button on mincart not ...
Munesh Jalwani's user avatar
1 vote
3 answers
828 views

How to get decimal value of weight in mini cart?

How to get decimal value of weight in mini cart. I need to display only 2 decimals 11.00 instead of 11.0000
trilok kumar's user avatar