Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
1
vote
1answer
152 views

Magento 2 minicart Items Issue

How to remove replace null value in place of Zero(0) in minicart if There is no items in cart in magento2?
1
vote
1answer
253 views

magento 2.1 custom theme header minicart layout overriding not working

I am building a new theme in magento 2.1. I need to override the default header minicart of magento 2.1. For that I had copied vendor\magento\module-checkout\view\frontend\web\template\minicart\...
1
vote
2answers
2k views

How to remove edit and delete button from minicart?

I tried, vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html I removed below lines <div class="product actions"> <!-- ko if: ...
0
votes
1answer
214 views

Update Mini Cart count Magento 2

I want to update minicart count. I was found some code regarding mini cart on sections.xml but it works with products not for item count on toplink with cart item. Now you can see below code what I'm ...
0
votes
2answers
650 views

Magento2, setItemCount for minicart does not work

To limit the number of product displaying in minicart, I wrote in app/design/frontend/myVendor/myTheme/Magento_Checkout/layout/default.xml below but I see no effect! <page xmlns:xsi="http://...
0
votes
0answers
592 views

Magento 2: mini cart icon not appearing in my custom theme

I'm creating a custom theme which is extended from Luma theme. For some reason, the Cart icon is not being displayed. I removed search box and Default welcome msg! through deafult.xml. But I'm sure I'...
1
vote
1answer
48 views

Deleting from minicart items causing issue

I am trying to delete from top minicart and getting this strange error: Recoverable Error: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance ...
0
votes
1answer
89 views

Override Minicart.php Block magento

I have try to doing override minicart.php block but unfortunately not getting success of override. you can see below code what i have implemented : <blocks> <test> ...
1
vote
1answer
673 views

Magento 2 - custom price can not add to subtotal and grand total after add to cart

I want to add custom price for bundle products after adding to cart. I have used "checkout_cart_product_add_after" observer to do so. But it is adding custom price to product price, not in sub total ...
0
votes
1answer
175 views

Product page needs to be refresh after customer login in new tab of same browser in Magento

I am stuck in one problem with Magento. When I click Addtocart button on product page of Magento, Product successfully adds in Cart and than I open the Customer Login Page in New Tab of same browser ...
9
votes
2answers
4k 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?
0
votes
2answers
841 views

Mini cart item price change magento 2

I am facing rounding issue in mini cart item price. I want to round price for mini cart item.But I am not sure from where it is coming? Please let me know where can I modify cart item price value. ...
3
votes
0answers
276 views

Mini cart is not working after adding custom theme [closed]

Mini-cart Stopped working after adding custom theme in magento 2.1.6. Any one please help me. [Note: I have already upload vendor template,layout and web file in our theme ] Please see image above:
1
vote
1answer
1k views

Close magento 2 minicart on click

Using Magento2 commercial theme, and this theme has Minicart closing on "hover". We want to change this to original Magento2 closing on click. Tried everything nothing works: <div class="block ...
0
votes
1answer
2k views

Magento 2 : Minicart always showing loader after product add to cart?

When I am clicking on Add To Cart button then product was added to my cart and mini-cart count also updated but loader on mini-cart showing always. After refreshing my page mini-cart shows updated ...
1
vote
1answer
313 views

Multiply subtotoal price in minicart

I want to show two subtotal prices in the minicart. The plan is to multiply the subtotal price and print it next to the original subtotal price. The price is printed by knockout in the html file ...
0
votes
1answer
93 views

problem to get toplinks and minicart

when I am calling echo $this->getChildHtml('topLinks') and echo $this->getChildHtml('cart_minicart') in header.phtml file than it outputs like <!-- fpc ...
0
votes
1answer
167 views

Product gets removed from mini-cart even if I click “Cancel” on confirm pop-up

When I click to remove product from mini-cart a confirm dialog pops up with "Cancel" or "Ok", if I click on "Cancel" the product still gets removed. Any idea why and how to fix it? This is the a ...
3
votes
2answers
2k views

Magento 2: Show total items count in Knockout template

I want to display the total items count using Knockout, in Magento_Checkout::header/minicart.phtml, e.g. if I have 2 items with the same SKU in the basket then the total items count is 1. I have ...
0
votes
1answer
592 views

Magento 2: Mini cart product count not updating for current session

I'm using a live chatbox API which is integrated into Magento 2. The problem is: When I add a product from the live chat box, the product counter is not getting updated in the Magento's mini cart. (...
0
votes
1answer
1k views

How to get cart item id using product id in magento2

I want to get cart item id using product id. For example, my product id is 600 and item id is 250. using product id , want to get cart item id. How to get it ? please help me..
2
votes
0answers
928 views

Magento 2 : Mini-cart quantity update button not working properly

Firstly I have added 1 product to my cart. When I am clicking on mini-cart then it shows like following: Now when I am updating QTY = 4 then clicks on Update button then 1 ajax call triggers and in ...
0
votes
1answer
310 views

Unable to delete the update product from minicart through ajax

I am unable to delete the updated product from the mini cart. this is the code: path : app/code/core/Mage/Checkout/controllers/CartController.php public function ajaxUpdateAction() { if (!...
4
votes
1answer
2k 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 ...
2
votes
2answers
4k views

Magento2: Update minicart view using ajax

Is there any way to update the minicart view? Now I'm using require([ 'Magento_Customer/js/customer-data' ], function (customerData) { alert("hola"); ...
2
votes
2answers
1k views

Magento 2: Minicart Display Quantity

I want to display quantity in mini cart as following: This is how it displays now.The field Qty is a text field I want to display it as qty X productprice This is the code <div ...
0
votes
1answer
494 views

Magento : Disable Minicart Popup When User Click on Add to Cart

I need to hide minicart popup when user clicks on Add to Cart button but when user clicks on cart icon, minicart popup need to be displayed. is there any way to do this in Magento 1.9.2.2???
5
votes
1answer
3k 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/...
1
vote
2answers
889 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 ...
1
vote
1answer
841 views

How to add Coupon Code Section In mini cart like in the shopping cart

I have searched a lot on google but didn't get the solution for this. I new to Magento, can any help me to how to add the coupon code section in Mini cart of magento. Like the Below Example: I have ...
4
votes
0answers
382 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 ...
3
votes
1answer
2k views

Refresh and update mini cart in Magento 1.9

I have a javascript function to add the product to the cart, but the problem is I need to refresh the page to see if the mini cart updated, in Magento 2 I use this function to update this mini cart, ...
0
votes
1answer
335 views

How can I get the minicart to always show?

I'm working on a design which has the minicart always visible (instead of only when you click on the cart image in the header). How can I get the minicart to always show?
3
votes
1answer
4k 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 ...
0
votes
1answer
701 views

Magento 2 minicart showing count multiple time

I am using magento 2.1.6 and i have a problem with my mini cart. the minicart showing multiple count at a time if i added 1 product it show "11 items" . and also if there is no product in cart it just ...
1
vote
1answer
251 views

Magento 2 in minicart popup need qty incrementer and decrementer

I want to display qty incrementer and decrementer button in minicart popup. I refer this link. Place below code in minicart.js but it is not working decreaseQty: function() { var newQty =...
1
vote
1answer
598 views

Add SKU to minicart above product name

I would like to add the product SKU above the product name in the minicart. How can I add it? Do I need to create a copy of one of these files in my theme? app/code/Magento/Checkout/view/frontend/...
1
vote
1answer
1k views

Magento 2 - Knockout js minicart

My current theme has a layout inside of the following: Theme/default/Magento_Theme/layout/default.xml Inside of this I have removed the header and rebuilt it like so: <referenceContainer name=...
3
votes
1answer
812 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/...
2
votes
1answer
570 views

Filter by product type in minicart

In Magento 2, I have made a special system. When a (configurable or virtual) product is ordered, the related products are automatically added. The configurable and virtual products are mealboxes, and ...
0
votes
0answers
565 views

Magento 2 minicart

I'm Using magento 2.1.3 and i face a problem regarding minicart when there is no item in the minicart its showing only the value "0" and the label items was not displaying After adding a product the ...
2
votes
2answers
2k views

Can't remove “Check out with Paypal” Button on cart? [Magento2]

I'm currently having the issue, that I cannot remove the Checkout with Paypal Button that comes from a Payment Option called Paypal Express Checkout. In the Magento2 Configuration settings I did set "...
0
votes
0answers
155 views

Magento 2: Update Minicart Product Price

I would like to update Minicart Product's price. I need all parameters so we can update it. It should update automatically Grand & Sub Total or We need to Update as well?
0
votes
0answers
105 views

Magento 2: How to override Item Info of MiniCart

I would like to override Item Info of Mini Cart here as well as on Checkout Sidebar I need to apply changes on price. Which files need to override & function?
1
vote
0answers
306 views

Magento 2: Update Minicart

I need to update minicart from Homepage to Untill Checkout. I exactly need to update price to solve Magento 2: Admin price changes are not refreshing minicart immediately till checkout Which event ...
1
vote
1answer
2k views

Minicart not working in magento 2.1.2

I am working on magento-2. After added the products into cart, minicart is not showing any products even if the added product exists in the checkout/cart page. After long refresh, this minicart ...
0
votes
2answers
552 views

Magento : Quick View Add to Cart not Showing Product in Minicart Witout Refreshing Page

I am using custom quick view with ajax. When I add product in cart using this quick view, mini cart show count of product but its not show product there. After refreshing page product show in minicart....
0
votes
1answer
492 views

quick view add to cart in magento 1.9

my module etc/modules/Minicart_Quick.xml <?xml version="1.0"?> <config> <modules> <Minicart_Quick> <active>true</active> <...
4
votes
4answers
5k 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 ...
2
votes
0answers
242 views

Magento 2: Add custom Attribute in mini cart

I added custom discount on shopping cart page. Now I want to add custom discount and grand total on minicart magento 2.How can i do this.