Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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
25 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
53 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
27 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
48 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
16 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
52 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
31 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
25 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
27 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
28 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
139 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
44 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
55 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
112 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
28 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
24 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
18 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
30 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
26 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
19 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
46 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
38 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
44 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
71 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
36 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
541 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
45 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
9 views

Delete a configarables simple product from cart in observer

I'm currently able to change the way the cart works by updating the qty value in the cart, i do this by first deleting the item before it is re-added using the checkout_cart_product_add_before ...
0
votes
2answers
141 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->...
0
votes
0answers
14 views

Magento2 add cart value change the QTY instead of updating

Currently the default behaviour is if i have item X in the cart with qty 5, if i put 8 in the qty box and add to cart the new qty is 13 - the expected behaviour we need to for the cart to change to 8 ...
0
votes
0answers
75 views

Product Price displaying incorrect(100.000.000,00) in Minicart&Cart for price greater than 1billion

https://community.magento.com/t5/Magento-2-x-Programming/Price-wrong-greater-than-1-billion/m-p/459543 AS per the screenshot you can see that the product price is 264...... but in price columns it was ...
1
vote
1answer
100 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
0answers
112 views

Move Paypal buttons from minicart to checkout step 2 under the Paypal payment button

When I turned on the Paypal on the site, they added Paypal buttons to me in the mini-cart. Tell me how to move these buttons under the button on the checkout step 2. There are a PayPal payment method ...
0
votes
2answers
170 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
104 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
0answers
7 views

Magento2.3: Products not Updated in Mini cart

Before page loads completely, click on add to cart button then the product is added to cart but the issue is, it is not updated in minicart.
0
votes
1answer
208 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
156 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 ...
0
votes
0answers
56 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 ...
1
vote
0answers
14 views

Calling minicart in phtml not showing dropdown on click

I'm calling minicart in my phtml like below <?php echo $this->getLayout() ->createBlock('Magento\Checkout\Block\Cart\Sidebar') ->setTemplate('Magento_Checkout::cart/...
0
votes
1answer
148 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 ...
2
votes
0answers
51 views

Magento 2 Issue with Minicart product price when price is set Including tax

Issue: Minicart is showing price excluding Taxes even if it is set in the backend to show product price including taxes Backend Settings: Product price is set to show including taxes: it is working ...
1
vote
1answer
57 views

Mini cart drop down not appearing

I have some issues on Magento 2.3.5 mini cart dropdown is not appearing. Total number of products added in cart appearing but when I click on the mini cart it shows a black transparent overlay and ...
1
vote
1answer
13 views

Header Links showing beyond search box and minicart beyond navigation !! Magento 2.3.5-p1

When a customer is signed in the header links (My account, My Wish List, SIgn Out) are displayed beyond the search box . See the image attached . I've noticed that there is an element.style {z-index:...
2
votes
0answers
26 views

Magento 2: How to bind an element in phtml with minicart js model function?

I want to print the items count in somewhere else, so i create a new phtml like this: <?php /** @var $block \Magento\Checkout\Block\Cart\Sidebar */ ?> <div class="test-cart" data-...

1
2 3 4 5
10