Questions tagged [mini-cart]

denotes questions related to Magento mini cart

202 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
209 views

Varnish cached Page without Magento hit

We're using Varnish as Page Cache, but we need to make a Ajax-Request on every page view to load the dynamic Stuff. In our case it's: global messages mini Cart form key We reduced the amount of ajax ...
Pawel's user avatar
  • 1,096
1 vote
0 answers
25 views

Magento 2.0.4 - minicart working on en_US, buggy on de_DE store language setting

We have the weird bug where the minicart is generating an exception in the console when having de_DE als language enabled, but it throws another error when en_US is enabled. Working on en_US: ...
Max's user avatar
  • 1,844
1 vote
0 answers
298 views

Magento 2 Fail to updating the mini-cart on right top corner

Sometimes the mini cart show "You have no items in your shopping cart." but indeed there are some items in cart. I wrote a function to refresh the mini cart in order to avoid the problem above. I ...
Ricky.C's user avatar
  • 2,182
1 vote
0 answers
589 views

Magento 2.1 Mini cart is not working knockout.js error

2.0.7 was working fine with all browsers but after upgrade to 2.1 the store is not working, bought items not adding to the cart so customer cannot checkout. even with fresh installation the cart is ...
Ahmad Darwish's user avatar
1 vote
1 answer
533 views

Cart items - number and value

There's a big difference when using: $_cartQty = $this->getSummaryCount(); and $_cartQty = Mage::helper('checkout/cart')->getCart()->getItemsCount(); Results are totally different (12 vs ...
nano's user avatar
  • 317
0 votes
0 answers
21 views

Magento 2 : Display All Cart Price Discount in Minicart

How to display all cart price rules discounts in minicart for M2.4.6 for those which can be calculated... For example if the buyer buys more than 100 USD or similar. I am aware, that discount based on ...
Petka's user avatar
  • 1
0 votes
0 answers
8 views

Update Custom Attribute like Price with the subtotal in the minicart

I have created an attribute for the Product like some extra fees. I got the attribute on the mini cart, saved it in the quote also updated their price according to the product quantity. I want to ...
Rana Zain's user avatar
  • 662
0 votes
0 answers
16 views

Call this._super() from anonymous function in js mixin

I have made a mixin for the minicart. I want to execute an async call before the parent function should be called. However it doesn't seem possible to call this._super() from an anonymous function. I ...
jrswgtr's user avatar
  • 63
0 votes
0 answers
36 views

Magento 2 Update Shipping Rates when remove Products from Mini cart in Checkout Page via JS

I have created a shipping rule with certain products so that such products have free shipping, but for example when I delete the product in the checkout cart from the mini cart, the shipping cost is ...
Diego Castro's user avatar
0 votes
2 answers
445 views

Minicart: failed to load template

I'm using a custom template and having an issue with the minicart rendering. The minicart pop-up renders, but does not gather any data with 2 errors in the console. So the popup does open when you ...
BroodjeBE's user avatar
0 votes
0 answers
79 views

Cart clear after 2 hours in magento 2.4.5

As a guest I add products in the cart at 10am and when I check the cart back at 12am the cart is empty. i have set a time approx 1 year but still it's not working . We have no cron job for this . I ...
Ranvir Singh's user avatar
0 votes
1 answer
134 views

magento 2.4 add cms block to minicart

I'm using widgets to insert static blocks on different places in my magento website. It works everywhere except the minicart. When I create a widget with the layout minicart promotion block, what I ...
Lou Nik's user avatar
  • 443
0 votes
0 answers
37 views

Inserting button in mini cart which is loaded by a javascript code

I need to add button in mini cart just below the "Proceed to checkout" button. And the button is loaded using this javascript code: let sourceUrl = "{some_url/index.js}"; let ...
Pratik Giramkar's user avatar
0 votes
0 answers
35 views

Magento 2: how to get the grand total of the minicart and cart on custom header template in when we add new products in the cart

how to get the grand total of the minicart and cart on custom header template when we add or update the new products in the cart in magento 2 witout refreshing the page. We can get via ajax of ...
Shomita's user avatar
  • 1,113
0 votes
1 answer
118 views

add progress bar in minicart magento 2

I'm new to Magento, I have this module which adds progress bar in cart summary https://github.com/christophermallory/magento2-freeshipping-progress-bar, I want to add it to minicart
Khaled Yahya's user avatar
0 votes
1 answer
25 views

remove add to cart button

How to remove "add to cart" button if the product have attribute "haveAttribute" turn on in the mini cart from code below: <?php $wishlistHelper = $this->helper('Magento\...
Bayzel's user avatar
  • 187
0 votes
0 answers
215 views

Quantity Increments setting is not working in Minicart in Magento 2

We are using Magento 2.4.3. For one of the products, we have enabled quantity increments and set 3 in the "Qty increments" setting. These settings are working fine on the product detail ...
Chintan Kaneriya's user avatar
0 votes
1 answer
191 views

How can I reload the payment section in Magento 2 checkout through JavaScript or knockout?

If reloading is not possible, perhaps triggering a reload somehow? I wish to update the payment section based on minicart changes. Right now I have an ugly solution by reloading the entire checkout ...
Michael Mussulis's user avatar
0 votes
0 answers
112 views

minicart mixin doesn't read customerData

i'm trying to create custom popup modal when click on "Go to checkout" button from Minicart. i have write this code to open custom modal if the guest checkout is disabled, and redirect the ...
JosefBy's user avatar
0 votes
0 answers
64 views

add product to cart using ajax?

I have a bunch of product ids and an add to cart button. How when I click add to cart button, other list products are added to cart. I use javascript(ajax)t to handle the above requests. Hope the good ...
HuanTH's user avatar
  • 135
0 votes
0 answers
317 views

Magento2.3.2 Uncaught ReferenceError: Unable to process binding, Message: regionHasElement is not defined

I'm new to magento and don't know much about magento, Recently I have installed a custom theme in magento ver 2.3.2-p2 and the theme was working perfectly but then It start throwing the given error on ...
Ibrar Akhtar's user avatar
0 votes
0 answers
22 views

mini registeration popup

i have mini register window , When i want to write Firstname and Lastname and Email and press submit the data didn't pass to create account page as you see in pic any ideas please Thank you
Hamad Al-Shabrawi's user avatar
0 votes
2 answers
151 views

Magento 2: How to get existing mini cart product's category ID in checkout_cart_product_add_before observer?

I am trying with following code. public function execute(Observer $observer){ $quoteId = $this->_checkoutSession->getQuote()->getItems(); $quote = $this->_checkoutSession->...
Anwar's user avatar
  • 75
0 votes
1 answer
150 views

Link from cart item to product page

When you add a product to your cart, it's showing on your minicart. When you click on that item it's bringing back to the product page. I'm looking to find how this link is made...looks like there is ...
Claims's user avatar
  • 1,164
0 votes
1 answer
266 views

Add "buy now " button in mini cart magento 2

Is there any way we can add a "buy now" button in the mini cart?
user avatar
0 votes
1 answer
596 views

How to remove out of stock items from the minicart in magento 2?

scenario- when the user doing his shopping he added some products to the basket, that are shown in the minicart by default. But when the click on mini cart (or) when the user refresh the page i need ...
Mani's user avatar
  • 383
0 votes
1 answer
1k views

Understanding data bind at minicart in magento 2

I am using magento 2 in mini cart, I am trying to get the event during which product is being added and removed, a specific item not by cart shown is the item that exists in mini cart, I want that ...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
718 views

Get Mini Cart Update Cart Button Event

I want to obtain the event during which this Mini cart update cart button is clicked I want to observe when and how many the amount of it being clicked I try to put below code inside app/design/...
Mohd Farhan Bin Ramli's user avatar
0 votes
2 answers
683 views

product add to cart after loading the product ajax call

How to trigger add to cart function After loading product by Ajax call. this above product loaded by ajax call I have to found solution if I click add to cart button, then add to cart function ...
Muhammad Zahoor's user avatar
0 votes
3 answers
1k views

Magento2.3 cart does not updated when adding product to cart

I'm facing an issue on my Magento 2.3 website when I'm adding the product to the cart. I'm getting the success message ('Product Name' has been added successfully), but the mini cart on the top right ...
Jayreis's user avatar
  • 705
0 votes
1 answer
467 views

mini cart is not showing count and product added in cart?

I've a custom phtml file where I;ve added the below code and still cart shows empty. <?php echo $this->getLayout() ->createBlock('Magento\Checkout\Block\Cart\Sidebar') -&...
Vinod Kumar's user avatar
0 votes
0 answers
60 views

How to add color name before product name in mini-cart and right sidebar of checkout page in Magento 2

I want to show the color with the product name in Minicart and Checkout Page in Magento 2. So i have got the color value by <!-- ko if: options.length --> <!-- ko foreach: { ...
Prits's user avatar
  • 626
0 votes
1 answer
95 views

The price of a particular Category be excluded from the minimum order amount

How can the price of a particular Category be excluded from the minimum order amount in Magento 2.3 I'm wondering how to approach this problem?
hana elaradi's user avatar
0 votes
1 answer
328 views

Show empty price-label (£0.00) in minicart when empty

I want to show the price next to the minicart icon even if it is zero/empty. I have added this code to Magento_Checkout/templates/cart/minicart.phtml <span class="price-label" data-bind=&...
totneschap's user avatar
0 votes
1 answer
788 views

Reload page after removing item from Mini cart in magento 2.3.3

Is there any way to reload the page completely, when we remove an item from mini cart. https://prnt.sc/11i1x2g After clicking on ok , i want to reload the page.
Nafsss's user avatar
  • 760
0 votes
1 answer
38 views

When adding item to cart minicart doesnt show the subtotal

When I'm adding an item to the cart from product page it doesn't show the subtotal in minicart but when I reload the page it does. How to fix that? Here is the link.
Maroun's user avatar
  • 1
0 votes
1 answer
111 views

Mini cart does not show on my theme

Here is my code to add the mini cart on my custom header .Any help? <body> <referenceBlock name="header.container" remove="true" /> <...
Monu kumar's user avatar
0 votes
1 answer
557 views

Auto delete item from minicart in magento 2?

I have 2 items in cart suppose A & B. When customer delete item A from minicart then auto delete item B. How the ajax will call 2 times, I have done this in controller's execute function (delete ...
Yogita's user avatar
  • 784
0 votes
1 answer
356 views

Magento 2 How to hide "Sub Total" div in mini cart if not items in cart?

In Magento 2.3.5-p1 I want to hide the "Sub Total" div if no items in the cart. Also, if the cart has items then that div will show again. How can I achieve this? There is a "subtotal....
Utsav Gupta's user avatar
  • 1,243
0 votes
1 answer
481 views

how to redirect to checkout click proceed to checkout from mini cart while customer is logout in Magento 2

My guest checkout is disable so while clicking to proceed to checkout from mini cart it shows a login popup.after login from this popup i want to redirect to checkout but it redirect to the same page ...
Shubhajay Das's user avatar
0 votes
0 answers
188 views

Update Mini Cart After Free Product Add Magento 2

I made a module for free product like if Cart Subtotal is above $600 then a product programmatically add to cart, for this I made an event called checkout_cart_add_product_complete, so when I add ...
Partab Saifuddin Zakir's user avatar
0 votes
1 answer
668 views

Mini cart js is not working properly the count is not showing some times

Minicart is not showing cart count properly at the time of not logging in. I had tried to show statically into the id condition but the when loading the 0 is shown after load it is not showing, I ...
Sabareesh's user avatar
  • 358
0 votes
0 answers
220 views

magento2 minicart auto update the subtotal on qty change

The current default behavior of the mini cart is when the QTY box is changed an "update" button is displayed which when clicked, updates the subtotal. Is there a way to do this automatically when you ...
gazZz's user avatar
  • 97
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
0 answers
90 views

Add to cart quantity reset to 1 even i added 2 qty in Arabic store Magento 2

Minicart quantity reset to 1 even I added qty 2 Magento 2. I am having the Arabic store, in the Arabic store only this issue shows, is it the problem with Locales. Please help to solve it.
Bibin Mathew's user avatar
0 votes
0 answers
26 views

Magento 2.3: who knows how to place the cart summary into the static block on any page?

I am trying to place the cart summary to the static page with products. I wanna locate it to the right from the grid of products (listed using Catalog Products widget). Anybody knows how to do this? ...
arman_p's user avatar
  • 31
0 votes
0 answers
334 views

Magento 2 Mini cart items are shown twice

I have Magento 2 and I enabled ajax add to cart and the mini cart. I added 5 products to my cart, it shows a count of 5 but when I click on the cart icon to show the listing it shows the product list ...
Trevor Orr's user avatar
0 votes
1 answer
624 views

Magento 2.3: How to make a custom block with all added items in the cart?

I am using Porto theme. In addition to the available mini cart sidebar, I'd like to create a custom block on the right side with a sticky cart, so customers would be able to see what they add and what ...
arman_p's user avatar
  • 31
0 votes
0 answers
116 views

Magento 2 : Custom minicart

I have a custom free shipping bar in minicart, and how can I move it to before "View And Edit Cart", hope anyone help me.
MichaelHa's user avatar
  • 661
0 votes
1 answer
328 views

Magento 2 : How to override price functionality on cart

Want to override cart price display functionality. Want to apply some additional formula before displaying Price on the cart and mini cart. Can anyone tell me how can I achieve this? Any help would ...
insoftservice's user avatar