Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
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 ...
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? ...
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 ...
1
vote
0answers
12 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
68 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 ...
1
vote
0answers
59 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
30 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') --> <!...
1
vote
1answer
40 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
33 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'...
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.
0
votes
1answer
37 views

Magento 2.3.1 minicart.phtml translations

I'm trying to translate the string items from app/design/frontend/<Vendor>/<theme>/Magento_Checkout/templates/cart/minicart.phtml without success. I have a dictionary already created in ...
0
votes
0answers
16 views

Magento 2: How to have minicart in reflect the updated product image for the item in (main) cart?

We use product designer that enables user to change the product image. While the new image (based on what the user changes) is rightly displayed based on the theme cart pages, the mini cart does not ...
0
votes
0answers
26 views

Magento 2 open minicart only when product added to cart

I have followed below post to open and close minicart as per this post. Magento 2 Open minicart when item is added. It is opening and closing perfectly. My issue is if I update minicart ...
1
vote
1answer
37 views

Magento 2.2.6: minicart still show value(count of products) after clear cart

After clear(removing all products) shopping cart shows nothing, but still show count of products value on minicart. tried to create sections.xml and flush cart after click 'distribution/cart/clear' ...
1
vote
0answers
35 views

Magento 2.3: Overwrite minicart content.html

I wanted to do some minor changes to the minicart in Magento 2.3. So I copied /vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html to /app/design/frontend/MyCompany/...
0
votes
0answers
39 views

Magento 2 Is it possible add two minicart in mobile view?

I want to add two mini carts in the mobile view, below are the screenshots what I'm expected to do. The first screenshot will be shown when we click on the mobile menu. This is the second mini-...
0
votes
0answers
30 views

Magento 2: I need help in the mini cart phtml file

Hello, I want to remove this "module.Magento_Checkout.," from the mini cart hover .. I guess its by to know the path of mini cart phtml file .. then i edit in it and remove the line .. i want to know ...
0
votes
0answers
24 views

Magento 2: Add Attributes to Minicart

I want to add custom attributes to the minicart. I have tried all the tutorials on the web, but it still does not work. The cart keeps showing "You have no items in your shopping cart." ...
0
votes
1answer
34 views

Magento2: How do i generate Remove from cart Url for a product?

I want to cart item remove in minicart using custom URL. Below code in magento1 I want to magento2 code /** * Get item delete url * * @return string */ public function getDeleteUrl() { ...
3
votes
2answers
204 views

Magento 2.3 : Load new custom items into Shopping Cart when an button is clicked

I am making my own module and now I added a button into it. If this button is clicked I want to get products with an AJAX request from a REST API (I already get my products, this is no problem). ...
0
votes
0answers
46 views

Minicart doesn't show any products on homepage

Somehow, the cart is empty in homepage even when I add the products. Cart display all the content on all the other pages. I have the theme to default luma theme (we have extended the luma theme) ...
0
votes
1answer
36 views

Adding Minicart to custom header results in a empty cart in magento 2

I tried adding the mini cart phtml to my header like this <?php echo $this->getLayout()->createBlock('Magento\Checkout\Block\Cart\Sidebar')->setTemplate('Magento_Checkout::cart/minicart....
3
votes
0answers
65 views

Duplicate Product in Cart Magento 2

I have an issue in Magento 2.1.6. When I add the same product in cart it's adding as a new line not update Qty of product. The same issue in the mini cart also. Actual Result: Add as a separate ...
0
votes
0answers
33 views

Add suffix to price in Minicart

We have a client that wants to add a suffix to price in mini-cart which depends on a value of custom product attribute (named pack_type). I have already done that for Product and Cart pages by ...
0
votes
2answers
57 views

Magento 2 : Add custom text after price amount show

I am trying to add custom text after price display everywhere(globally) in website. category view product view Mini cart cart page checkout page etc.. can anyone help to me...
2
votes
0answers
15 views

Why cart ID is null even though i can see the id from \Magento\Checkout\Helper\Cart

I am trying to get the cart value, i can get the quote id when i do x-debug. if i try to get the id i get NULL Anyone know why i get this
0
votes
0answers
45 views

Magento 2 mini cart delete not works

Magento 2 mini cart delete not works
1
vote
3answers
90 views

How to change text “You have no items in your shopping cart.” in minicart in magento 2

How to change the text "You have no items in your shopping cart." in mini cart in Magento 2
2
votes
0answers
33 views

Main cart page is not reflecting the updated quantity, After updating the quantity in mini cart in Magento 2.2.8

I have a Magento 2.2.8 Community Edition. Main cart page is not reflecting the updated quantity, After updating the quantity from mini cart in Magento 2.2.8 Step 1 - I have updated QTY from mini ...
0
votes
0answers
28 views

How To clear mini-cart when switching between stores in Magento 2.3

I Have 2 stores in my website, I want to clear the Mini-cart, Cart during store switch. For this i wrote below code, app\code\E25media\CustomBlocks\Controller\Cart\Index.php <?php namespace ...
0
votes
1answer
77 views

currency format in mini cart

Want to convert number format into currency in mini cart. Was able to convert it into PHP but it gets converted into another format due to JS Number 1370000 convert to $1.370.000,00 Magento2 : ...
0
votes
0answers
44 views

Observer for event on Checkout button click of Minicart Magento 2

I want to create observer for event which is responsible to send data from minicart to checkout. Please suggest event name. I have already tried: checkout_cart_update_items_before and ...
0
votes
1answer
32 views

Overriding CustomerData/Cart.php removes Total from MiniCart Magento 2

I have overridden \vendor\magento\module-checkout\CustomerData\Cart.php file in my custom plugin using di.xml using below code: <preference for="Magento\Checkout\CustomerData\Cart" ...
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 ...
2
votes
1answer
86 views

How to update the mini-cart proceed to checkout according to customer login in magento 2?

I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart. How to edit the minicart.js file to achieve this?...
0
votes
1answer
116 views

Get config value in html using knockoutjs

I am trying to get config value to html file. My aim is to check if the config value is enabled of it is show a button and if it’s continue normally with out button the button. I am not sure how to ...
0
votes
2answers
84 views

Customer name not appearing and products not showing in mini-cart, Magento 2

I have Magento 2.2.6 version. After signin, customer name is not showing on top dropdown bar, however if I reload the page aur goto another page it then appears. Another issue is that when adding ...
0
votes
1answer
39 views

How to fix blank Minicart popup in custom navbar for Magento 2

I am creating a custom theme from the parent theme Luma. I've added this code to Magento_Theme/layout/default.xml to include the minicart. <block class="Magento\Checkout\Block\Cart\Sidebar" name="...
0
votes
0answers
85 views

Magento2.3.1 getting issue when update qty

How to solve below error when trying to update qty in cart? "Something went wrong while saving the page. Please refresh the page and try again."
1
vote
0answers
41 views

Remove quantity for some products in minicart

I need to remove the quantity from some product of my minicart. But as the minicart is loaded in ajax, I need to deal with this with JS. Sometime of remove the input, sometime it doesn't. And if I ...
0
votes
0answers
35 views

How to remove Edit and Delete button from mini-cart and cart page for specific product?

I want to remove edit and delete button from mini-cart and cart page for specific product only. How can I do this? Any help would be appreciated. Thanks.
0
votes
1answer
74 views

Minicart - Html text showing raw , required formatted text in magento 2

In mini cart i am trying to put a custom/formatted text but it reflecting raw html over there, required for magento 2. Using Magento 2.2.4. I expect html formatted text but the actual output raw ...
0
votes
0answers
23 views

Minicart - Html text reflecting raw , required formatted text in magento 2

In mini cart i am trying to put a custom/formatted text but it reflecting raw html over there, required for magento 2. Using Magento 2.2.4. I expect html formatted text but the actual output raw ...
2
votes
1answer
68 views

Move cart icon to after login/account

I have been trying to move the cart within the top header, though its appearing in the incorrect sequence. I would like this to appear after Create Account <move element="minicart" destination="...
1
vote
1answer
39 views

Magento 2.3 - Category Page in CMS blank amongst other errors

Experiencing some weird behaviour in Magento 2. It's 2.3.1 (recently upgraded from 2.2.4 but it we only started experiencing it after migration). Issue 1: When visiting a category page in the CMS, ...