Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Magento ver. 2.4.3-p1 : 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 empty" data-role="dropdownDialog" ...
0
votes
0answers
14 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
0answers
19 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
0answers
14 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
1answer
19 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
2answers
38 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
2answers
71 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
0answers
17 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
3answers
34 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
1answer
36 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
1answer
22 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
0answers
35 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
1answer
83 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
0answers
56 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
0answers
21 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: { ...
0
votes
1answer
187 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
1answer
24 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
1answer
20 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
0answers
118 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
0answers
24 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
0answers
63 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
0answers
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
0answers
26 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
1answer
82 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
0answers
33 views

Translate “custom option” in mini-cart for multistore

I have managed to successfully translate the custom options in the article (see previous question here. But the next step is to reproduce these options also in the "mini-cart". The minicart ...
0
votes
1answer
133 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
1answer
60 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
1answer
351 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
2answers
37 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 ...
0
votes
0answers
26 views

How to create QTY dropdown in Magento 2

I want to create QTY dropdown in minicart but only on mobile view. In dropdown exit 10,000 QTY . so how to add dropdown in minicart. Thanks.
0
votes
0answers
14 views

Magento 2: How to get updated minicart products ids after delete or add items

I am getting product ids of the mini cart from the getCartParam function in Minicart.js But I am not able to get product ids when we delete or add the items in the mini cart. Basically need product ...
1
vote
1answer
46 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
1answer
101 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
2answers
395 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
0answers
93 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
1answer
176 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
0answers
279 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
1answer
52 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
1answer
12 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
1answer
27 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
1answer
90 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
1answer
28 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" /> <...
0
votes
1answer
54 views

How to remove default cart icon image in header from my custom theme?

I have developed custom theme, and added own cart icon image using app\design\frontend\Mytheme\theme\web\css\source_extend.less .minicart-wrapper .showcart::before { // content: "" !...
0
votes
1answer
62 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 ...
2
votes
3answers
95 views

How can overwrite an event from JS file in custom theme or module without overwriting the whole file?

How can overwrite an event from sidebar.js in my custom theme or custom module without effecting anything else that is located in the file? What is the best approach? I need to make the following ...
1
vote
2answers
755 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
0
votes
2answers
277 views

Getting swatch value from checkout_cart_product_add_before observer

Is it possible to get the Swatch value id or name from the checkout_cart_product_add_before observer? I've passed the Product using $product = $observer->getProduct(); $productId = $observer->...
1
vote
1answer
154 views

cart not getting empty after success page redirection done in magento 2

How can I empty my cart value when order successfully done in Magento 2. This issue only done with logged-in user how can I handle this issue. Is there any solution for this?
0
votes
2answers
259 views

I want to Display custom Price Under price in mini-cart

I want to display price like show in image.i want display 10% of price in mini cart under price please help me.
0
votes
1answer
171 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....

1
2 3 4 5
10