Questions tagged [mini-cart]

denotes questions related to Magento mini cart

Filter by
Sorted by
Tagged with
0
votes
1answer
13 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() { ...
1
vote
2answers
167 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
44 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
28 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....
2
votes
0answers
32 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
27 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
38 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
11 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
38 views

Magento 2 mini cart delete not works

Magento 2 mini cart delete not works
1
vote
3answers
42 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
29 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
21 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
39 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
24 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
22 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" ...
3
votes
0answers
27 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
43 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
40 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
1answer
62 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
29 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
65 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
31 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
26 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
41 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
22 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
28 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
31 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, ...
3
votes
1answer
61 views

Magento 2 Mini-cart doesn't close when click on outside in iPhones

How can we close the mini cart popup on Magento 2? (clicking outside is not working). I have already tried the following method on footer.phtml. It's working on android phones and browsers but iPhones,...
1
vote
0answers
93 views

Magento 2 : Shopping cart is empty but Display product in mini cart

I have work in Local Environment. I had install multiple Magento version in my local environment. I have two Magento project of version 2.3.0 and 2.3.1. When I had Add one product in Mage231 project ...
1
vote
1answer
40 views

KnockoutJS Which Model does the Minicart use?

So, i'm very new when it comes to using KnockoutJS but i've been doing some reading around it and to my knowledge each template file has its own corresponding model. However, as i'm looking through ...
0
votes
1answer
46 views

magento 2 how to show minicart in custom Popup?

magento 2 how to show minicart in custom Popup ?
1
vote
0answers
18 views

Magento 1.9 open header mini cart when product is added to cart

I want to open the header cart when a product is added to the cart on my Magento 1.9.4.1 store, by adding the class display:block; to my header cart div after the page is re-loaded. I use the default ...
1
vote
2answers
62 views

Magento 2 Execute jQuery when minicart is done loading

I'm having the problem currently where I need to run some jQuery on my Minicart. However, I can't select anything from the Minicart because the jQuery is executing before the Minicart is actually ...
1
vote
0answers
116 views

Magento 2 how to get current cart details and customer cart details?

In Magento 2 how to get current cart details without customer login and get cart details with customer login like minicart ? I checked with this \Magento\Checkout\Model\Cart & \Magento\Checkout\...
1
vote
0answers
28 views

Magento2: Minicart issue on Custom layout

I am using a custom layout for the category page. Here is my code: app/code/Custom/Module/view/frontend/page_layout/equipment.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www....
1
vote
1answer
37 views

move minicart before top.search magento 2.2

I have moved the mini cart before top.search using below code in my theme under app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml <?xml version="1.0"?> <page ...
0
votes
0answers
83 views

how to get custom table data in block in magento 2.3

I want to display the custom table data in cart page in magento2 for this I have to override the layout file and through that block is calling in that block I am trying to getting the model collection ...
2
votes
1answer
142 views

Magento 2 I Want to add Dropdown Quantity Box In Minicart

I am trying to replace Dropdown instead of text box at Quantity at Minicart. I tried following code but didn't get success ( i am trying direct in Magento Vendor folder for testing purpose). ...
1
vote
0answers
15 views

Bulk add to cart function issue

I added multiple products in the cart using this below script. <script> require(['jquery'], function (jquery) { document.getElementById("add").addEventListener("click", function () {...
1
vote
1answer
117 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 ...
4
votes
1answer
403 views

Difference between Minicart and Cart in Magento 2

I want to know the difference between Mini cart and Cart in details.
2
votes
0answers
34 views

How to access Magento 2 shipping & cart total in custom sidebar?

I am building a custom Magento 2 right sidebar module. It will bring sidebar panel from right when a new item is added. I can access all cart items data from default js modules except Shipping Total ...
1
vote
1answer
261 views

Magento 2 Minicart content not displaying

I'm working on developing my own theme by extending the Magento Blank theme. I'm trying to add the minicart to my header.phtml file. I'm loading the minicart in my header like so: <?php echo $...
1
vote
1answer
95 views

Magento 2 Ajax call not working

I am trying to update whole minicart content but my ajax call is not working $.ajax({ url: "my_controller_url", type: "POST", success: function (result) { $(".minicart").html(...
1
vote
3answers
1k views

how to add quantity increment and decreament (+ and - button) in minicart magento 2?

actually i am trying to add quantity increment and decreament (+ and - button) in minicart magento 2.3. If anyone have any idea please guide me.
1
vote
1answer
140 views

Magento2: How to get Grand total and Shipping total in Minicart

Show grand_total and ShippingTotal in mini-cart without creating or using any module.
1
vote
1answer
65 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 ...
1
vote
1answer
162 views

Magento 2 Minicart Ajax update

I need to update mini cart without the need to click on update button (just clicking on +/- button) I can't find module or code to do that!
4
votes
2answers
203 views

Magento 2.3 Minicart check if subtotal is above value

I want to check inside my /app/design/frontend/theme/theme/Magento_Checkout/web/template/minicart/subtotal/totals.html file if the subtotal is larger than 29.95. I want to display some additional ...
2
votes
1answer
279 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 ...