We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [mini-cart]

denotes questions related to Magento mini cart

177 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
2answers
3k 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, ...
6
votes
4answers
5k 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
4
votes
1answer
55 views

Save value of custom field in minicart to order Magento 2

I have added one field "Special instructions" (textarea) in mini cart which I want to get saved in order details when customer put the order. In which observer can I get the value of this field? and ...
4
votes
2answers
52 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
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 ...
4
votes
1answer
806 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
0answers
67 views

Duplicate Product in Cart Magento 2

I have an issue in Magento 2.1.6. When I add the same product in cart it's adding as a new line not update Qty of product. The same issue in the mini cart also. Actual Result: Add as a separate ...
3
votes
1answer
203 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. ...
3
votes
1answer
268 views

How to change the Persistent Cart time for Guest Users?

Magento 2 cleans up the guest cart data under 24 mins if left idle, is there any setting which can help to persist cart data for a guest user for around 90 days?
2
votes
0answers
16 views

Why cart ID is null even though i can see the id from \Magento\Checkout\Helper\Cart

I am trying to get the cart value, i can get the quote id when i do x-debug. if i try to get the id i get NULL Anyone know why i get this
2
votes
0answers
33 views

Main cart page is not reflecting the updated quantity, After updating the quantity in mini cart in Magento 2.2.8

I have a Magento 2.2.8 Community Edition. Main cart page is not reflecting the updated quantity, After updating the quantity from mini cart in Magento 2.2.8 Step 1 - I have updated QTY from mini ...
2
votes
1answer
97 views

How to update the mini-cart proceed to checkout according to customer login in magento 2?

I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart. How to edit the minicart.js file to achieve this?...
2
votes
0answers
37 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 ...
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
98 views

Magento 2: MiniCart issues

I found a bug in the mini-cart: You add products to your cart - then in the mini-cart you click "Proceed to Checkout" - then immediately click on "View and Edit Cart". The result is - a empty cart....
2
votes
1answer
86 views

How to add a custom block to the quick cart in Magento 2

I need to add a custom block to the quick cart / mini cart so that a message can be displayed. What XML would I need to amend?
2
votes
1answer
263 views

How can I disable the mini-cart if the basket contains too many products?

I am working on a wholesale website in Magento 2 and have noticed the front-end performance drops off massively when the mini-cart has to render too many items (over say, 20 different SKUs). I'm ...
2
votes
0answers
74 views

Show popup when update qty in mini cart using ajax magento

When I update qty in mini cart if qty is greater than the qty of products in stock, I want to show popup "The requested quantity for ...(my product name) is not available." using AJAX. How to do that?...
2
votes
0answers
79 views

cart().subtotal_excl_tax and cart().subtotal_incl_tax are the same

cart().subtotal_excl_tax and cart().subtotal_incl_tax are the same I got the some price. How can I get the subtotal with including tax? <div class="amount price-container"> <!-- ko if: ...
2
votes
0answers
70 views

How do I remove the + sign from mini-cart bundle options in Magento 2

How can I remove the leading '+' sign from mini-cart bundle options in Magento 2
2
votes
0answers
114 views

Magento 2: Minicart is not updated for certain storeviews when adding product for the first time

II have multiple websites and storeviews in my Magento 2.2.2 installation. I have experienced a weird issue, that for some storeviews, when adding a product to the shopping cart for the first time, ...
2
votes
0answers
237 views

Magento2.2.x Custom page side bar in display mini cart items

My custom page in displaying all product with add to cart product functionalities I want display mini cart items on page sidebar. after add to cart item update and display in that sections. like that....
2
votes
0answers
104 views

magento minicart add subtotal in icon area where count is shown

Seems like a pretty simple task but I've edited minicart.phtml with <span data-bind="html: getCartParam('subtotal')"></span> and can't seem to figure out why I can't get subtotal next to ...
2
votes
1answer
35 views

Issue with my cart module on pdp and cart pages, just keeps spinning

I would like to add new attributes to the cart that already exist, I just want to populate them on the front end cart. Here is the structure of my module: app/code/Frontier/Minicart | ...
2
votes
0answers
474 views

Magento 2: How to add Estimate Shipping and Tax in Minicart?

I want to add Estimate Shipping and Tax block on Minicart. It is possible to calculate tax and shipping from minicart block?
2
votes
0answers
206 views

Magento2 add text to minicart while product added to cart

In Magento2 - I want to add message on top of the mini-cart while product add to cart. Using event and observer I want to add this message and also want to apply conditions for that, if cart sub ...
2
votes
0answers
925 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 ...
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 "...
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.
2
votes
1answer
565 views

Modify the minicart price issue on Magento 2

I am trying to modify the price in mini cart with a custom product attribute now the price in the minicart come from: myproject\vendor\magento\module-checkout\view\frontend\web\template\minicart\...
2
votes
1answer
955 views

Magento2 - Reload page after remove item from Minicart

I have been trying to reload the page after removing item from Minicart in Magento2, Can anyone help on this.
2
votes
0answers
764 views

Magento 2 How to display shipping costs in minicart popup?

How can I display shipping methods/prices on minicart pop up in Magento 2?
2
votes
0answers
1k views

Magento2 Moving minicart to sidebar removing ajax

this is my minicart.phtml file, now I've placed it in the sidebar it shows an ajax popup link instead of displaying the minicart itself. How can I edit this code to just let it show directly in the ...
2
votes
1answer
490 views

Magento 2: Mini Cart return no items

I have a bug with magento 2.1 but i think it is from base. when i add to cart from product detail: ajax is loaded and everything is good, mini cart show 1 item but the bug appear when i add to cart ...
2
votes
1answer
645 views

The difference of “remove product links” in cart and minicart (rwd theme)

Looking at the remove product links I found two different below codes: In .../checkout/cart/item/default.phtml <a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::...
2
votes
2answers
2k views

Magento2 Knockout js - issue on cart

I tried to reposition my cart block to a other header location. Since then I am getting this javascript error which is annoying since I only repositioned a block. Uncaught TypeError: Unable to ...
2
votes
0answers
389 views

Magento 2 Cart Breaking When Copying minicart.phtml into Template

I want to make some style changes to the mini cart in Magento 2. Mainly move it up with my search bar and change the background color. I have tried using the exact code from the minicart.phtml in the ...
2
votes
0answers
830 views

Retrieve updated mini cart (cart_sidebar) block - not cached version

I'm using Magento EE 1.13.2 and use jQuery to add products to the cart: var url = "/checkout/cart/add?product=" + productId + "&qty=" + qty + "&form_key=" + formKey; $j.get(url, "", function(...
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 ...
1
vote
1answer
32 views

Magento 2 pass php session variable to minicart-mixin.js (for all pages)

I would like to pass a PHP session variable flag to minicart-mixin.js dynamically. I followed the below steps mentioned here using the Config Provider concept I am able to pass variable to only cart ...
1
vote
0answers
13 views

Magento, translate phrases of the wishlist and cart alert

I'm trying to translate the phrases that appear in the alert when trying to delete the item from the wishlist or in the shopping cart. I refer to these two sentences: - Are you sure you would like to ...
1
vote
0answers
62 views

Magento 2.3.2 minicart issue

Recently we upgraded Data from Magento 1.9.4 version in to Magento 2.3.2 [we did data migration]. After Data migration, we are facing issue with minicart section. if we click on minicart button it ...
1
vote
0answers
14 views

Magento2: How to add cart summery(tax,discount,shipping etc) in minicart popup

I want to display Shopping cart summery in mini-cart popup Like below screenshot can anyone help me out to display cart summery in minicart.
1
vote
1answer
38 views

Magento 2.2.6: minicart still show value(count of products) after clear cart

After clear(removing all products) shopping cart shows nothing, but still show count of products value on minicart. tried to create sections.xml and flush cart after click 'distribution/cart/clear' ...
1
vote
0answers
35 views

Magento 2.3: Overwrite minicart content.html

I wanted to do some minor changes to the minicart in Magento 2.3. So I copied /vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html to /app/design/frontend/MyCompany/...
1
vote
2answers
62 views

Magento 2 : Add custom text after price amount show

I am trying to add custom text after price display everywhere(globally) in website. category view product view Mini cart cart page checkout page etc.. can anyone help to me...
1
vote
0answers
41 views

Remove quantity for some products in minicart

I need to remove the quantity from some product of my minicart. But as the minicart is loaded in ajax, I need to deal with this with JS. Sometime of remove the input, sometime it doesn't. And if I ...
1
vote
1answer
40 views

Magento 2.3 - Category Page in CMS blank amongst other errors

Experiencing some weird behaviour in Magento 2. It's 2.3.1 (recently upgraded from 2.2.4 but it we only started experiencing it after migration). Issue 1: When visiting a category page in the CMS, ...
1
vote
0answers
129 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
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 ...