Questions tagged [mini-cart]
denotes questions related to Magento mini cart
466
questions
0
votes
0
answers
16
views
How to condition check a product attribute in a JS Mixin?
Using Magento 2
I am trying to do a condition check on a mixin I created for the update function on the mini-cart.
The code looks like this:
define(function (customerData) {
'use strict';
...
0
votes
1
answer
23
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?
0
votes
0
answers
55
views
Magento2.4: Minicart has no content
I'm working on a custom theme and having issues updating the minicart content. The minicart loads, but always says there are no items in the cart. If I continue towards the checkout page, there are ...
0
votes
0
answers
24
views
Use minicart remove action in custom module
I am making custom module where show all current cart item,
i need delete action also on list with ajax same as minicart
I use
but it shows an error in the console
Unable to process binding "...
1
vote
1
answer
22
views
Capture minicart configureable product variant info
I just finish install magento2.3.5-p2 with sample data,
I want to understand how to collect variant data of product being added to cart at minicart
The reason for this is to be able for me to push ...
0
votes
1
answer
48
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 ...
0
votes
0
answers
14
views
Magento 2.4 special price reverting when qty updates
I have a special price set on some products in Magento 2.4. The price works fine when you put an original QTY in (on the cat page, product page, minicart or cart page) but as soon as the qty is ...
0
votes
1
answer
195
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 ...
0
votes
0
answers
28
views
Show minicart in both header and footer magento 2
I'm trying to show minicart in both header and footer. I have added a new phtml in footer layout and added below code.
<?php echo $this->getLayout()
->createBlock('Magento\Checkout\...
0
votes
0
answers
97
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/...
0
votes
2
answers
100
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 ...
0
votes
1
answer
29
views
Magento ver. 2.4.3-p1 : Avoid scrolling down while block-minicart has an hover effect
Avoid scrolling down while block-minicart has an hover effect
Make sure that the icon cart has an hover effect to the minicart in order to show the list items:
<div class="block block-minicart ...
0
votes
0
answers
34
views
Magento 2 minicart icon as link to shoping cart
I'm working in Magento 2.3.5 - p1.
I have the minicart in the sidebar, when a product is added the minicart opens for a few seconds and then closes automatically. When the minicart icon is clicked, ...
0
votes
0
answers
34
views
mini cart product price chnage magento 2
Product details page product price $10.123123 and mini cart page product price rounding $10.123100 so i am facing rounding issue in mini cart item price please check screen short.
Thanks in advance.
...
0
votes
0
answers
70
views
Magento 2.4.3 - Minicart Not Adding Products Unless you are logged in
I am on a new magento store running 2.4.3 and when the user is NOT logged in no products are added to minicart, however they are added when I go to the cart page. If I login with a customer account ...
1
vote
1
answer
25
views
showing quantity of items in cart in a custom magento 2 file does not work
When I put the code to show the number of items in the cart in my custom headerfile.phtml it doesn't work, but when I access a checkout page it works perfectly, what to do?
Here's the code:
<?php
$...
1
vote
2
answers
223
views
Magento 2 custom popup not work when click of 'Proceed to Checkout'
I have created the custom Popup and open the popup when click on process to checkout in minicart.
login popup not work when click on 'Proceed to Checkout' after the login customer account.It's work ...
2
votes
2
answers
162
views
Magento2.4 - How to add New Link in Mini Cart Popup?
I want add some New Link in Mini Cart Popup,like below image,
How can I add this links?
Thank you.
0
votes
0
answers
20
views
How to add recently viewed product in mini cart
How to show recently viewed product in mini-cart. its showing in home page.but I couldn't find a way to place that into mini-cart.
0
votes
3
answers
80
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 ...
0
votes
1
answer
56
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')
-&...
1
vote
1
answer
37
views
How to know which file to make changes in Magento 2
I am new in Magento 2 and I m having very difficulty in finding which templates or blocks to make changes. I know how to override files. I had previously made changes in the theme but still, I can't ...
0
votes
0
answers
44
views
Magento ver. 2.4.3 missing cart icon
The font awesome cart icon is missing. All I see is a square where the icon should be (see screenshot). I am using a theme called pixtron:
https://www.hiddentechies.com/pixtron-responsive-theme-...
0
votes
1
answer
184
views
How to show simple product name of a configurable product on Checkout Payment page?
I want to show a Simple product with a Configurable product name on ( Mini-cart, Cart page, and checkout page ).
I have successfully achieved to show the name on Mini-cart and Cart page but on the ...
1
vote
0
answers
111
views
Select some item from cart to checkout
I'm currently using Magento 2.3 and I'm trying to customize cart page. So basically I want to add checkbox to cart so I can select some item in my cart to proceed checkout. I have no lead to do this ...
0
votes
0
answers
27
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: { ...
2
votes
1
answer
442
views
After upgrade Magento 2.3 to 2.4 can not add product to cart
After click button ADD TO CART , it's error Cannot read properties of undefined (reading 'remove')
and mini cart is empty too
0
votes
1
answer
39
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?
0
votes
1
answer
50
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=&...
0
votes
0
answers
224
views
How to Add move to wishlist button on the minicart popup and on remove item popup
I want to customize my minicart in Magento 2. I need to add move to wishlist button on the minicart popup and on remove item popup.
I create only Button Move to wishlist,it doesn't have any action(...
0
votes
0
answers
31
views
how to show the price after applying cart price rules in mini cart?
I have managed to show the price before and after special price ( discount ) but if there is cart price rule ( for example buy 2 and get 20% off ) I Can't get the price after this discount, how to get ...
0
votes
0
answers
103
views
Magento 2: Minicart product title is coming with special character
Magento 2.3.5-p2
when adding the product to the cart product name is "Hello & world", on minicart when we hover the product image the product title is showing like this "Hello &...
0
votes
0
answers
9
views
Minicart - on first click totals.html and subtotal.html file is not getting loaded
On refresh both page i.e totals.html and subtotal.html is getting loaded
May I know the reason why it is not getting loaded in first click
do I need to use below reload in minicart.js file
...
0
votes
0
answers
38
views
Minicart and add to cart success message is not showing after product added to cart in Magento 2.3.3
Hello,
I am facing an issue during add to cart. When a product added to cart then minicart is not loading also flash message is not showing.
This is my product details page url "http://127.0.0.1/...
0
votes
1
answer
139
views
Magento 2: Change "Add to Cart" Button text When item is removed from the minicart
I rename the "addtocart" button text to "item in cart" when product is in cart. but if i remove item from minicart at that time i want to again set button text as "addtocart&...
0
votes
1
answer
195
views
Free Shipping Bar In Mini Cart
I Followed the tutorial Add Free Shipping Bar In Mini Cart, Magento 2 https://kiwicommerce.co.uk/blog/how-to-add-free-shipping-bar-in-top-mini-cart/
The progress bar showing but the Title Text is ...
0
votes
1
answer
150
views
Magento 2 - Check in minicart if customer is loggedin knockout
We want to check in the minicart if the customer is loggedin.
<!-- ko if: isCustomerLoggedIn == 1 -->
Does not seem to work well for the mini cart. This only works when you are visually in the ...
0
votes
1
answer
617
views
Magento 2 - Add shipping cost to mini cart
How can we display the shipping cost in the mini cart subtotal?
At the moment we only have the subtotal in the mini cart.
We tried a lot in the mini cart tax template;
/Magento_Tax/web/template/...
0
votes
2
answers
50
views
Magento 2: Minicart update product id issue with CustomerData
I am showing a popup on click of checkout when these two products(81, 83) added in the mini cart and this is working fine. Now I have added the 81 products and any other products in the cart. But when ...
1
vote
1
answer
66
views
Magento 2: How to check inarray ids in minicart.js
getCartItems: function () {
var items = this.getCartParam('items') || [];
_.each(items, function (item, key) {
console.log(item.product_id);
...
1
vote
1
answer
223
views
Magento 2: I want to get product id from getCartItems function in minicart.js
Here is the function in minicart.js
getCartItems: function () {
var items = this.getCartParam('items') || [];
console.log(items);
// want to get product id from ...
0
votes
2
answers
693
views
Magento 2.4.2. Mini cart count not updating after free product remove on update cart button click
When total price is above $200 cart price rule is applied and free products are added to the cart.
when total price is below $200, cart price rule is applied and free products are removed from the ...
1
vote
0
answers
114
views
Magento 2 - Check in mini cart if product is virtual
How can we check in the mini cart if the product is virtual using knockout?
Inside the cart and checkout we can use the following, but that is not working in the mini cart. Any idea?
<!-- ko if: (...
0
votes
1
answer
322
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.
0
votes
0
answers
358
views
Magento 2 : How to add Coupon Code Section In mini cart like in the shopping cart
I want to display coupon code section inside the minicart with same functionality as shopping cart page.
0
votes
2
answers
97
views
Magento 2: Add/Remove class from div if minicart hasitem
i want to add custom class if the minicart is empty and remove the class if minicart has items.
0
votes
1
answer
15
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.
0
votes
1
answer
39
views
Fully truncate cart on visiting a specific URL
I'm trying to fully truncate the cart.
I've override getAllVisibleItems in the checkout \Magento\Quote\Model\Quote Model
But I still can visit the cart page and see the empty table of it, and the ...
0
votes
1
answer
141
views
How to show magento default backorder notice message in minicart & sales emails(same like cart page)
Have tried looking into several blogs & stackoverflow answers but unfortunately didnt find any solutions.
I am using mage 2.4.0
Can someone please look into it?
0
votes
1
answer
31
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" />
<...