Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 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
0 votes
1 answer
12 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\...
  • 167
0 votes
0 answers
63 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 ...
0 votes
1 answer
77 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 ...
0 votes
0 answers
215 views

How can I display normal price and special price in minicart?

In the mini cart default, a special price will show if a product has a special price (calculated price). I need to show both prices regular price and special price in mini cart. Please suggest me a ...
0 votes
1 answer
35 views

Display dispatch date in minicart Magento2

how to show the dispatch date on the mini cart after adding the item the items? can anyone help me out with this? Thank you in advance.
0 votes
0 answers
49 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 ...
0 votes
1 answer
41 views

Minicart icon showing twice during checkout

Minicart is showing under sign in link during checkout. See screenshot. Disabled current theme and applied luma and blank. All themes show the same? I believe this is where it is coming from. Tried ...
  • 47
1 vote
1 answer
193 views

How to disable the update qty button in mini cart by default

I want to disable the update qty button in mini cart by default, and when if the customer changed the qty then it should be enabled. Magento 2.4.2.
  • 93
2 votes
1 answer
175 views

How to set Shipping Method on product add to cart and show total including shipping cost in mini cart?

I want to set shipping method when product is added to cart and want to change shipping method based on products added to cart.I have tried multiple way but unable to set and change shipping method ...
  • 437
0 votes
1 answer
132 views

mini_cart_product_thumbnail not sizing to values set in etc/view.xml

I have my image sizes set in my app/design/frontend/My_Design/My_Theme/etc/view.xml but for some reason, the values for mini_cart_product_thumbnail are not being used in the minicart. <view xmlns:...
0 votes
0 answers
48 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 ...
  • 75
0 votes
0 answers
85 views

Show backorder notice message in mini cart like checkout page

I want to show backorder notice message in mini cart how can I do that just like that :
0 votes
0 answers
75 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 ...
0 votes
0 answers
20 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
0 votes
2 answers
34 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->...
  • 75
2 votes
0 answers
403 views

Mini-cart not showing products added

I'm developing a Magento 2.3.6-p1 store, using a based luma custom theme, and mini-cart is not showing added products, it ONLY shows the products when i add a product, but when i reload the page, the ...
user avatar
0 votes
0 answers
128 views

Mini-Cart not displaying simple product image of configurable product

I want to show a simple product image of the configurable product on Magento 2.4.3-p1. Have done the below settings already still image does not show of simple product instead configurable product ...
  • 141
0 votes
2 answers
553 views

How to add Custom attribute on minicart?

I need to display custom product attribute in mini cart for each product in the cart. How to get attribute value. please see below screenshot. https://prnt.sc/-99NK5eeFgAZ Thanks, Kiran
  • 475
0 votes
1 answer
73 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 ...
  • 1,024
0 votes
0 answers
53 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
159 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?
  • 50
1 vote
1 answer
705 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
101 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
51 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
380 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 ...
  • 131
0 votes
1 answer
879 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
542 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
464 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
129 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 ...
  • 2,300
1 vote
1 answer
45 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 $...
  • 197
1 vote
2 answers
796 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 ...
  • 1,366
2 votes
2 answers
362 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.
  • 115
0 votes
3 answers
787 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 ...
  • 705
0 votes
1 answer
248 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
147 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
1 answer
400 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 ...
  • 586
1 vote
0 answers
239 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
39 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: { ...
  • 586
2 votes
1 answer
801 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
80 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
196 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
1 answer
271 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
335 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
357 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 ...
  • 1,436
0 votes
1 answer
1k 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/...
  • 1,436
0 votes
2 answers
204 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,083
1 vote
1 answer
124 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,083
2 votes
1 answer
588 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 ...
  • 1,083
0 votes
2 answers
1k 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 ...
  • 330

1
2 3 4 5
10