Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0
votes
1answer
15 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
19 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
19 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
33 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 ...
0
votes
0answers
32 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
18 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
55 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
21 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
17 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
35 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
16 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
50 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
7 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
62 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
31 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
83 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
29 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
173 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
35 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
10 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
29 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
46 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
268 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 ...
0
votes
0answers
65 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
127 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
179 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
32 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
26 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
0answers
14 views

Convertir en barra lateral

How I can convert this cart to sidebar in version 2.3.5? anyone have any ideas, thank you very much
0
votes
0answers
25 views

How to call minicart in custom block in magento 2

I want to call mini cart in my custom popup after clicking minicart icon in mobile view. When clicking on the cart icon it should slide like below and show the minicart content in the slide block. ...
0
votes
1answer
57 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
27 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
0answers
20 views

Mini cart does not show on custom theme header

I have added custom theme with custom header but mini cart does not show on header. Here is my code <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
51 views

My Mini-Cart and Proceed to Checkout are not working

For a few days now I have encountered an issue on my website shorturl.at/gixLV The Mini-Cart has stopped showing any number above zero despite items being within the cart. The Mini-Cart dropdown is ...
0
votes
0answers
16 views

expired sale price retained in customer cart

I'm new to Magento, and setting up a cart using Magento 2.4.1, CE 2.4.1 (on Debian 10). Problem: customer logs in and puts sale item in cart, then goes away without checking out sale expires customer ...
0
votes
1answer
43 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
48 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
75 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 ...
0
votes
0answers
42 views

Magento 2 how to disable cart sharing between stores?

I wan't to disable the shared cart between stores under same website. I wan't accounts to be shared, but not carts, is it possible? I tried the following solutions: Disable cart sharing between ...
1
vote
2answers
626 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
0answers
68 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
201 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
122 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
224 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
133 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....
0
votes
1answer
262 views

How to update qty minicart by ajax without clicking "Update" button

I'm trying to make shopping cart get updated automatically when a customer/user changes the qty of an item in the minicart without having to click the "update" button. I was thinking of this ...
0
votes
1answer
176 views

how to redirect to checkout click proceed to checkout from mini cart while customer is logout in magneto 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 ...

1
2 3 4 5
10