Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Restrict double click on delete in minicart in magento 2

In minicart of magento 2, when click on delete icon, confirm popup is open. after confirm, it take sometime time to delete. till the time we are able to click multiple time. and popup will come ...
0
votes
0answers
10 views

Quantity is not updating in mini-cart via ajax, try to update with multiple qty only one qty updated to mini-cart Magento 2

Quantity is not updating in mini-cart via ajax, try to update with multiple qty only one qty updated to mini-cart. I have two stores one is in Arabic and another is in English. The English store is ...
1
vote
2answers
46 views

Magento 2 pass php session variable to minicart & hide proceed to checkout

I would like to pass a PHP session variable flag to mini cart-mixin.js dynamically. I followed the below steps mentioned here using the Config Provider concept I am able to pass variable to only cart ...
0
votes
0answers
18 views

Magento 2: Show price of custom option in mini cart

I have a product has a custom option like this In my mini cart how to show label and price of custom option, currently only the label. Any helps? Thank in advance.
2
votes
1answer
646 views

The difference of “remove product links” in cart and minicart (rwd theme)

Looking at the remove product links I found two different below codes: In .../checkout/cart/item/default.phtml <a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::...
0
votes
3answers
66 views

magento 2 don't want to show proceed to checkout button based on custom condition

How to hide Proceed to Checkout button in the mini cart section magneto 2 from custom module based on my condition. For example: if the custom session data is set then hide - ...
0
votes
2answers
37 views

Magento 2 How to show count 0 on mini cart when no product is in cart?

Basically i want to show count on cart when no product is in cart.
1
vote
1answer
157 views

Mini Cart Not Working in Mobile view in magento 2

For Mobile view, I have added the items in the cart, the mini cart icon shows the product count correctly, But it will fail to trigger the minicart-wrapper class which means while clicking the cart ...
0
votes
0answers
9 views

Magento 1.7 mini shopping cart not updating in other pages when programatically editing cart

For some specific reason, I need to add and remove items to the cart programmatically. Functionality appears to work but when I click on other category pages the mini shopping cart still shows old ...
1
vote
3answers
327 views

How to show base image on minicart in magento2.1.7?

I want to show base image in minicart and checkout, Right now it is showing thumbnail images in magento2.1.7 I don't have any thumbnail images for my product so I need to point it as base image. Any ...
7
votes
2answers
3k views

Magento 2 Add to cart frontend event listener

I am trying to find good solution to execute custom javascript when product is successfully added to cart. Also this custom javascript need information about product that was added to cart (sku, qty, ...
0
votes
1answer
209 views

Change product image issue in Minicart Magento2

I am trying to change product image in minicart, Used below code to achieve it. here is the code of my di.xml file. <type name="Magento\Checkout\CustomerData\AbstractItem"> <plugin name="...
0
votes
3answers
663 views

Changing cart image based on cart item

I am trying to change the cart image based on my cart item configuration. But it seems like Magento\Checkout\Block\Cart\Item\Renderer::getImage receives the original Product model class and not the ...
1
vote
2answers
286 views

Magento 2 Change Minicart Product Image from thumbnail to regular image

After editing the minicart for a couple of days now i've noticed that the images are smaller versions of the images that you would see on the product pages. This means as i'm upscaling them to fit a ...
2
votes
1answer
490 views

Magento 2: How to disable Quantity Box for specific product from checkout cart and minicart

How can we disable Quantity Box for specific product from checkout cart and minicart? I have already search for the solution but it will disable quantity for all products reference URL Your help ...
3
votes
1answer
268 views

How to change the Persistent Cart time for Guest Users?

Magento 2 cleans up the guest cart data under 24 mins if left idle, is there any setting which can help to persist cart data for a guest user for around 90 days?
0
votes
0answers
15 views

Magento 2.3: who knows how to place the cart summary into the static block on any page?

I am trying to place the cart summary to the static page with products. I wanna locate it to the right from the grid of products (listed using Catalog Products widget). Anybody knows how to do this? ...
3
votes
3answers
3k views

Magento2, echo product attribute in minicart

How can I access product attribute to echo it in minicart /web/template/minicart/item/default.html Like below works for cart page templates/cart/item/default.phtml <?php $product = $_item->...
2
votes
1answer
955 views

Magento2 - Reload page after remove item from Minicart

I have been trying to reload the page after removing item from Minicart in Magento2, Can anyone help on this.
0
votes
1answer
946 views

Magento 2.2.2 issue mini cart not working

Centos 7 (se linux disabled) nginx php 7.0.27 Luma theme Magento 2.2.2 A very strange issue. Minicart not working I found a lot of posts but no one corrects my issue. try setup:di / deploy static ...
1
vote
2answers
81 views

Mini cart with zero price for all the configurable products except first item

While adding set of configurable products to cart, it gets added and showing correct data in checkout/cart page, whereas in mini cart it is showing zero price for all the configurable products except ...
0
votes
0answers
28 views

Magento 2 Mini cart items are shown twice

I have Magento 2 and I enabled ajax add to cart and the mini cart. I added 5 products to my cart, it shows a count of 5 but when I click on the cart icon to show the listing it shows the product list ...
0
votes
1answer
791 views

add custom block inside minicart

I need to display a custom template inside the mini cart, after the subtotal and above the buttons (view all and proceed to checkout). I have my template in /template/mymodule/mytemplate.phtml wich ...
0
votes
2answers
1k views

Modify the product price in minicart

I try to change the price from minicart with a custom product attribute, but in C:\xampp\htdocs\myproject\vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html the ...
1
vote
0answers
13 views

Magento, translate phrases of the wishlist and cart alert

I'm trying to translate the phrases that appear in the alert when trying to delete the item from the wishlist or in the shopping cart. I refer to these two sentences: - Are you sure you would like to ...
2
votes
2answers
1k views

Magento 2: Minicart Display Quantity

I want to display quantity in mini cart as following: This is how it displays now.The field Qty is a text field I want to display it as qty X productprice This is the code <div ...
1
vote
1answer
282 views

Mini cart product and cart page product order sequences does NOT match in Magento 2

I tried, in catalog_category_view.xml file <referenceBlock class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list"> <action method="...
7
votes
7answers
6k views

Magento 2, Change On hover instead of 'click' for mini cart

In magento 2. For mini cart and store switcher, they are dropdown with click. How to change on hover instead of 'click'. I had tried with jquery trigger click, but It don't work.
0
votes
0answers
25 views

Magento 2: Show discount and summary on mini cart (canvas)

I need to show the total summary and discount information on canvas cart. I am using a mini cart as canvas cart. https://prnt.sc/pcud8e May I call the api /V1/guest-carts/:cartId/totals-information ...
2
votes
1answer
35 views

Issue with my cart module on pdp and cart pages, just keeps spinning

I would like to add new attributes to the cart that already exist, I just want to populate them on the front end cart. Here is the structure of my module: app/code/Frontier/Minicart | ...
2
votes
0answers
104 views

magento minicart add subtotal in icon area where count is shown

Seems like a pretty simple task but I've edited minicart.phtml with <span data-bind="html: getCartParam('subtotal')"></span> and can't seem to figure out why I can't get subtotal next to ...
2
votes
2answers
2k views

Can't remove “Check out with Paypal” Button on cart? [Magento2]

I'm currently having the issue, that I cannot remove the Checkout with Paypal Button that comes from a Payment Option called Paypal Express Checkout. In the Magento2 Configuration settings I did set "...
0
votes
1answer
71 views

Magento 2.3: How to make a custom block with all added items in the cart?

I am using Porto theme. In addition to the available mini cart sidebar, I'd like to create a custom block on the right side with a sticky cart, so customers would be able to see what they add and what ...
4
votes
1answer
806 views

mini cart not showing items

I have installed magento 2.0.7 and override minicart.phtml file in my custom theme. After adding product in cart ,click on the Minicart icon in the header, the content area of the minicart displays ...
2
votes
2answers
867 views

Update Minicart programatically in magento 2

I have create problematically adding number of products at a time in Magento 2 cart and there I can one see one first product in mini cart other products are also in mini-cart but not showing the ...
2
votes
0answers
208 views

Magento2 add text to minicart while product added to cart

In Magento2 - I want to add message on top of the mini-cart while product add to cart. Using event and observer I want to add this message and also want to apply conditions for that, if cart sub ...
0
votes
0answers
156 views

Mini cart should open automatically and close after few seconds when product is added in Magento 1

I am working on magento1 project. I want a solution to below mentioned problem. When we add product to the basket, the mini cart should automatically open up and then close after few seconds(5 ...
1
vote
0answers
62 views

Magento 2.3.2 minicart issue

Recently we upgraded Data from Magento 1.9.4 version in to Magento 2.3.2 [we did data migration]. After Data migration, we are facing issue with minicart section. if we click on minicart button it ...
0
votes
1answer
32 views

knockout.js getCartParam method

Currently, in my minicart.phtml override file I have knockout.js code like this to display the number of items in my cart: <!-- ko if: getCartParam('summary_count') --> <!...
0
votes
2answers
1k views

How can I display the grand total in the minicart? - Magento2

I currently have my subtotal tax settings set to 'Display subtotal excluding tax'. This has changed the subtotal in the minicart to display the subtotal excluding tax. How can I display the grand ...
1
vote
1answer
42 views

Magento 2: Mini cart not updating while delete a product from observer

I see my mini cart not updating its items when I delete an item from the cart programmatically. but the cart updating perfectly as per my requirement only after I added a new item into cart or any ...
1
vote
1answer
37 views

Magento 2 - How to conditionally show/hide the minicart block based on the customer permissions

The problem: I'm running into an issue with the page/block caching and the minicart. In the template cart/minicart.phtml we have a permission check to see if the current customer is allowed to add ...
0
votes
0answers
26 views

Magento 2 : Custom minicart

I have a custom free shipping bar in minicart, and how can I move it to before "View And Edit Cart", hope anyone help me.
0
votes
1answer
38 views

Magento2.3: Product quantity is not reflecting to the minicart

I have installed a module which is for adding increment and decrement buttons for quantity. After installing the module I can see the buttons in product detail page but when i update the quantity, it'...
0
votes
1answer
1k views

Magento 2 Minicart cant remove items

When I try to remove an item from the minicart I get this popup message: "Attention We can't find the quote item."
1
vote
1answer
2k views

Minicart not working in magento 2.1.2

I am working on magento-2. After added the products into cart, minicart is not showing any products even if the added product exists in the checkout/cart page. After long refresh, this minicart ...
1
vote
0answers
14 views

Magento2: How to add cart summery(tax,discount,shipping etc) in minicart popup

I want to display Shopping cart summery in mini-cart popup Like below screenshot can anyone help me out to display cart summery in minicart.
0
votes
1answer
32 views

Magento 2 : How to override price functionality on cart

Want to override cart price display functionality. Want to apply some additional formula before displaying Price on the cart and mini cart. Can anyone tell me how can I achieve this? Any help would ...
0
votes
0answers
21 views

Magento 2.3 : Update product quantity in cart

I have a custom module ajax cart. How can I update the quantity of product I added in first photo, and it is synchronized with the quantity in the cart. Thank in advance.
4
votes
1answer
55 views

Save value of custom field in minicart to order Magento 2

I have added one field "Special instructions" (textarea) in mini cart which I want to get saved in order details when customer put the order. In which observer can I get the value of this field? and ...