Questions tagged [mini-cart]

denotes questions related to Magento mini cart

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

Render minicart without dropdown dialog

I want to move the minicart to an offcanvas sidebar (foundation 6). I was able to move the minicart vial layout. But it keeps rendering as a dropdown dialog (magento ui) so I would like the cart's ...
2
votes
1answer
1k views

Magento 2: Minicart Failed to load the “Magento_SalesRule/js/view/payment/discount” component

I am working on MiniCart Extension in which I need a coupon code text box in my Minicart. For that I have overridden default.xml in my Custom Module but everytime It returns following error in the ...
0
votes
0answers
109 views

Totals - Minicart - JS problem

I have 4 errors in my shop now. After change a plugin and did everything clearing the cache, deploy the static files, we have the error with the totals js, I should say, we bought a template and we ...
3
votes
2answers
5k views

Adding quantity increment button in cart and mini cart

I need to add a quantity increment button in cart page and mini cart popup like this. I added the button but I can't assign the functionality. This is what I did app/code/Amsi/UserManagement/...
1
vote
0answers
237 views

Apply cart rule discount in mini cart

I have implemented cart rules that gives discount when the user buys more than 20 items of a product. The discount is shown in the cart, but not in the mini cart, which is very confusing for my ...
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
1answer
501 views

Magento 2.1.9 frontend font icon extend

I need to change only one font icon -the cart icon. I tried a few guides: https://www.classyllama.com/blog/icon-fonts-magento-2-foundation http://rossmchugh.com/extending-magento2s-icon-font-system/ ...
0
votes
1answer
124 views

Overwriting the cart page layout in Magento 2.1.7

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. I want to change the layout of the page visible at the URL www.mysite.com/checkout/cart/ I ...
0
votes
2answers
687 views

Add a “My cart” link to the top links

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. I want to add a My cart link to the top links: Clicking this link should make the Ajax cart ...
1
vote
1answer
409 views

Custom “add to cart” button not updating minicart

I've added a custom "add to cart" button by overwriting the configurable.phtml file in my theme. The button adds the product to the cart, however it doesn't seem to show up in the minicart - ...
2
votes
3answers
4k views

How to clear cart and minicart programatically in Magento 2?

How to clear cart and minicart programatically in Magento 2?? I am using this code $quoteId = $this->_checkoutSession->getQuote()->getId(); $quoteModel = $this->objectManager->create('...
0
votes
2answers
696 views

How to move minicart into topbar.phtml?

Right now I have the following default.xml file... <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...
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 ...
0
votes
4answers
2k views

Magento 2 - How to show not visible individually products in mini cart?

I have create a ajax call and added a product to cart programmatically. After that i have redirected to direct checkout page. Now mini cart shows similar to attached image. Point to be noted is cart ...
2
votes
2answers
3k views

Magento2 catch ajax complete, add to cart

I'm building an custom mini-cart. I want it to update itself when an article is added to the cart. I'm trying to do this by jQuery with catching the ajax complete, but can't get it to work. Can anyone ...
3
votes
2answers
832 views

Magento 2 : Minicart disable quanity box

How can we initially disable quantity box (read-only) of mini cart and enable it while clicking edit link for each separate product ?
1
vote
0answers
456 views

How do I get a Simple Product Name of the Configurable into minicart

Edit DefaultItem.php file doGetItemData() function as below vendor/magento/module-checkout/CustomerData/DefaultItem.php protected function doGetItemData() { $imageHelper = $this->...
0
votes
2answers
332 views

Mini Cart item count give wrong value in Magento1

I am using Magento1.9.2.4. I remove the minicart from header and insert it in customer footer phtml file, As the work of remove and insert has been done by XML. Mini cart is working fine, the only ...
3
votes
2answers
2k views

Loading Javascript for minicart in Magento 2

I want to make certain customization in minicart, for that purpose I have created a module which overrides Magento_Checkout/template/minicart/item/default.html. Overriding html I have created a ...
1
vote
0answers
792 views

How to override minicart content.html?

How can I override the following file for Magento-2.2.2 vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html Is there something different between .html and .phtml ?? As I ...
4
votes
2answers
52 views

broken minicart - urgent

I have attempted to edit the minicart on our webstore, however this resulted in an error occurring which seems to be quite common but no one seems to have an easy fix. The minicart now outputs a JS ...
3
votes
1answer
1k views

How to change process to checkout url of minicart in Magento 2.2.1

I want to change "Process to checkout" url of minicart with custom theme. I override content.html in my custom theme but I don't know how we change url of button. <div class="actions" if="...
1
vote
1answer
2k views

Change button text in modal popup minicart

When I remove an item in the Minicart, a modal popup pops up. This popup has two buttons: Cancel and OK. I want to change these strings to No and Yes, but I can't find the code where the modal is ...
0
votes
1answer
640 views

Magento2 update minicart using custom ajax

I have scenario to update quantity using +/- button in in magento2 minicart. I override MagentoCheckout to my theme and edited minicart/items/default.html and made the changes , now i need to make ...
1
vote
1answer
1k views

Magento 2 Make “View and Edit Cart” a button on mini cart

I'm trying to make the "view and edit cart" link at the bottom of the mini cart a button. I have copied content.html to my child theme app/design/frontend/Mytheme/Mytheme/Magento_Checkout/web/...
1
vote
2answers
2k views

how to refresh mini cart programmatically in magento2

after customer login ,i am add filter on current customer quote, and remove items form quote which are not match. so item are delete successfully but front side in minicart cart item count are not ...
1
vote
0answers
492 views

How i can hide minicart in header and display when product add to cart

I have tried everything to hide the cart from my website and display it when any product added to cart by clicking on "Add To Cart" button, but it didnt work, i am using magento 2.1, any helps are ...
0
votes
1answer
371 views

Magento Minicart not clear after delete all product programatically

I have customized mini-cart. and place one new button Clear shopping cart. it's work fine. all item are deleted successfully. but mini cart total not updated in Magento 2. total updated only by one ...
0
votes
2answers
864 views

How to Add Scrollbar to Minicart Dropdown Content in Magento 2.1.x

Currently, when 5+ products are added to Cart and a user clicks on the minicart icon, so that the dropdown is initialized - the dropdown contents go beyond screen fold, effectively hiding a portion of ...
8
votes
2answers
613 views

Magento 2 How do I sort mini cart items?

I am trying to sort the items based on the product ordered qty. Is there any logical method to the way cart items are sorted by ordered qty?
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="...
1
vote
2answers
1k views

How to get product count in minicart but not their quantity

app\design\frontend\test\product\Magento_Checkout\templates\cart\minicart.phtml <a class="action desktop showcart" href="<?php /* @escapeNotVerified */ echo $block->getShoppingCartUrl(); ?&...
1
vote
2answers
1k views

Magento 2: How can I add sku under product name on minicart for each product?

I can't find the phtml template for the minicart in the header, I think actually that the information like name, price, quantity etc are rendered with knockout js. I want to add brand attribute value ...
2
votes
0answers
474 views

Magento 2: How to add Estimate Shipping and Tax in Minicart?

I want to add Estimate Shipping and Tax block on Minicart. It is possible to calculate tax and shipping from minicart block?
1
vote
0answers
329 views

mini cart subtotal update in observer

I need to update the mini cart subtoal after removing the item through observer. The event I used to remove item is checkout_cart_save_after Removing the item(s) works, but updating the mini-cart ...
4
votes
2answers
2k views

Update quantity in minicart

I want to add Quantity increment / decrement buttons in header minicart. For that I have added divs as follows <div class="more">+</div> <input ...
0
votes
0answers
283 views

How to remove close button from minicart and when all product gets deleted then it should automatically close popup?

I overridden content.html file and removed below code <button type="button" id="btn-minicart-close" class="action close" data-action="close" data-bind="attr: { ...
2
votes
3answers
455 views

Magento get product id on mini cart

How to get product id from product which already added to cart in mini cart ? I've opened this file : app/design/frontend/<theme_name>/default/template/checkout/cart/minicart/default.phtml ...
1
vote
1answer
535 views

How to add sku on minicart?

I tried, Test\Cart\view\frontend\web\template\default. <tr class="item product product-item" data-role="product-item"> <div class="product"> <div class="product-item-details"> ...
0
votes
2answers
1k views

Magento 2 - Remove inactive products from cart after login

I am looking for the best way to remove inactive products (not available on stock) after user login from cart/mini-cart. I know that I can set quote lifetime in admin, but I am wondering how to ...
2
votes
0answers
207 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 ...
2
votes
2answers
866 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 ...
1
vote
3answers
4k views

How to get quantity and subtotal for all products added to cart on Magento 2

I tired to get the total qty of products added to cart and also the subtotal in a custom phtml on product page. For that i use this code but without success: $objectManager = \Magento\Framework\App\...
0
votes
0answers
44 views

Magento 2: How to use 2 minicarts with same knockout template?

In my site are use 2 minicarts (in header and sidebar) with same knockout template: app/design/frontend/Vendor/Theme/Magento_Checkout/web/template/minicart/content.html I want to adjust small fixes,...
0
votes
1answer
431 views

Stop product options from displaying in the minicart

How do I stop product options from displaying in the minicart?
2
votes
1answer
635 views

Magento 2 checkout page redirection

I want to redirect the 'proceed to checkout' action in mini cart to a custom page. I can't set the new link in mini cart button. http://i.prntscr.com/ZGS7nessQsSMlbjZHSFj0Q.png
3
votes
2answers
245 views

Minicart starts Spinning after few days on adding product

I am Using my Own custom theme extended from LUMA theme and in that I have extended checkout module, done some modifications like bringing CHECKOUT button in the bottom as it comes at the top. Added ...
1
vote
1answer
2k views

Magento2 mini cart item delete alert

Can anyone let me know, How an alert box getting delete an item popup, from minicart: location below: line 71: vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js Where defined the ...
1
vote
0answers
104 views

Magento 2.1 paypal express requires customer login

I'm trying to configure PayPal express checkout in Magento 2.1.8 unfortunately without success. Every time I try to checkout out from the minicart with PayPal express checkout Magento asks me to login ...
1
vote
1answer
507 views

Magento2 Override 2 classes in single plugin di.xml

I am making a custom module for displaying attributes in Minicart and cart page and I have changed two core classes vendor/magento/module-checkout/CustomerData/DefaultItem.php vendor/magento/module-...