Questions tagged [mini-cart]

denotes questions related to Magento mini cart

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

Unable to resolve the source file for 'frontend/Babycry/theme/en_US/css/images/cart.png'

i want to replace the minicart icon in header with custom image, i added the image in vendor/theme/web/images/cart.png, and i added the css like .minicart-wrapper a.action.showcart::before { ...
0
votes
1answer
23 views

Reload page after removing item from Mini cart in magento 2.3.3

Is there any way to reload the page completely, when we remove an item from mini cart. https://prnt.sc/11i1x2g After clicking on ok , i want to reload the page.
0
votes
0answers
21 views

Magento 2 : How to add Coupon Code Section In mini cart like in the shopping cart

I want to display coupon code section inside the minicart with same functionality as shopping cart page.
0
votes
1answer
22 views

Magento 2: Add/Remove class from div if minicart hasitem

i want to add custom class if the minicart is empty and remove the class if minicart has items.
0
votes
1answer
11 views

When adding item to cart minicart doesnt show the subtotal

When I'm adding an item to the cart from product page it doesn't show the subtotal in minicart but when I reload the page it does. How to fix that? Here is the link.
0
votes
1answer
21 views

Fully truncate cart on visiting a specific URL

I'm trying to fully truncate the cart. I've override getAllVisibleItems in the checkout \Magento\Quote\Model\Quote Model But I still can visit the cart page and see the empty table of it, and the ...
0
votes
0answers
12 views

Convertir en barra lateral

How I can convert this cart to sidebar in version 2.3.5? anyone have any ideas, thank you very much
0
votes
0answers
18 views

How to call minicart in custom block in magento 2

I want to call mini cart in my custom popup after clicking minicart icon in mobile view. When clicking on the cart icon it should slide like below and show the minicart content in the slide block. ...
0
votes
1answer
11 views

How to show magento default backorder notice message in minicart & sales emails(same like cart page)

Have tried looking into several blogs & stackoverflow answers but unfortunately didnt find any solutions. I am using mage 2.4.0 Can someone please look into it?
0
votes
1answer
25 views

Mini cart does not show on my theme

Here is my code to add the mini cart on my custom header .Any help? <body> <referenceBlock name="header.container" remove="true" /> <...
0
votes
0answers
19 views

Mini cart does not show on custom theme header

I have added custom theme with custom header but mini cart does not show on header. Here is my code <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
22 views

My Mini-Cart and Proceed to Checkout are not working

For a few days now I have encountered an issue on my website shorturl.at/gixLV The Mini-Cart has stopped showing any number above zero despite items being within the cart. The Mini-Cart dropdown is ...
0
votes
0answers
15 views

expired sale price retained in customer cart

I'm new to Magento, and setting up a cart using Magento 2.4.1, CE 2.4.1 (on Debian 10). Problem: customer logs in and puts sale item in cart, then goes away without checking out sale expires customer ...
0
votes
1answer
35 views

How to remove default cart icon image in header from my custom theme?

I have developed custom theme, and added own cart icon image using app\design\frontend\Mytheme\theme\web\css\source_extend.less .minicart-wrapper .showcart::before { // content: "" !...
0
votes
1answer
41 views

Auto delete item from minicart in magento 2?

I have 2 items in cart suppose A & B. When customer delete item A from minicart then auto delete item B. How the ajax will call 2 times, I have done this in controller's execute function (delete ...
2
votes
3answers
65 views

How can overwrite an event from JS file in custom theme or module without overwriting the whole file?

How can overwrite an event from sidebar.js in my custom theme or custom module without effecting anything else that is located in the file? What is the best approach? I need to make the following ...
0
votes
0answers
32 views

Magento 2 how to disable cart sharing between stores?

I wan't to disable the shared cart between stores under same website. I wan't accounts to be shared, but not carts, is it possible? I tried the following solutions: Disable cart sharing between ...
1
vote
2answers
394 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
0
votes
0answers
39 views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
0
votes
0answers
8 views

Delete a configarables simple product from cart in observer

I'm currently able to change the way the cart works by updating the qty value in the cart, i do this by first deleting the item before it is re-added using the checkout_cart_product_add_before ...
0
votes
2answers
83 views

Getting swatch value from checkout_cart_product_add_before observer

Is it possible to get the Swatch value id or name from the checkout_cart_product_add_before observer? I've passed the Product using $product = $observer->getProduct(); $productId = $observer->...
0
votes
0answers
12 views

Magento2 add cart value change the QTY instead of updating

Currently the default behaviour is if i have item X in the cart with qty 5, if i put 8 in the qty box and add to cart the new qty is 13 - the expected behaviour we need to for the cart to change to 8 ...
0
votes
0answers
73 views

Product Price displaying incorrect(100.000.000,00) in Minicart&Cart for price greater than 1billion

https://community.magento.com/t5/Magento-2-x-Programming/Price-wrong-greater-than-1-billion/m-p/459543 AS per the screenshot you can see that the product price is 264...... but in price columns it was ...
1
vote
1answer
79 views

cart not getting empty after success page redirection done in magento 2

How can I empty my cart value when order successfully done in Magento 2. This issue only done with logged-in user how can I handle this issue. Is there any solution for this?
0
votes
0answers
54 views

Move Paypal buttons from minicart to checkout step 2 under the Paypal payment button

When I turned on the Paypal on the site, they added Paypal buttons to me in the mini-cart. Tell me how to move these buttons under the button on the checkout step 2. There are a PayPal payment method ...
0
votes
2answers
104 views

I want to Display custom Price Under price in mini-cart

I want to display price like show in image.i want display 10% of price in mini cart under price please help me.
0
votes
1answer
42 views

Magento 2 How to hide “Sub Total” div in mini cart if not items in cart?

In Magento 2.3.5-p1 I want to hide the "Sub Total" div if no items in the cart. Also, if the cart has items then that div will show again. How can I achieve this? There is a "subtotal....
0
votes
0answers
7 views

Magento2.3: Products not Updated in Mini cart

Before page loads completely, click on add to cart button then the product is added to cart but the issue is, it is not updated in minicart.
0
votes
1answer
150 views

How to update qty minicart by ajax without clicking “Update” button

I'm trying to make shopping cart get updated automatically when a customer/user changes the qty of an item in the minicart without having to click the "update" button. I was thinking of this ...
0
votes
1answer
103 views

how to redirect to checkout click proceed to checkout from mini cart while customer is logout in magneto 2

My guest checkout is disable so while clicking to proceed to checkout from mini cart it shows a login popup.after login from this popup i want to redirect to checkout but it redirect to the same page ...
0
votes
0answers
40 views

Update Mini Cart After Free Product Add Magento 2

I made a module for free product like if Cart Subtotal is above $600 then a product programmatically add to cart, for this I made an event called checkout_cart_add_product_complete, so when I add ...
1
vote
0answers
13 views

Calling minicart in phtml not showing dropdown on click

I'm calling minicart in my phtml like below <?php echo $this->getLayout() ->createBlock('Magento\Checkout\Block\Cart\Sidebar') ->setTemplate('Magento_Checkout::cart/...
0
votes
1answer
87 views

Mini cart js is not working properly the count is not showing some times

Minicart is not showing cart count properly at the time of not logging in. I had tried to show statically into the id condition but the when loading the 0 is shown after load it is not showing, I ...
0
votes
0answers
7 views

How show the quote_item.additional_data in the mini cart

I set some information in the field additional data the table item_quote, I can't show this information in the mini cart, any help with this. vendor/magento/module-checkout/view/frontend/web/...
1
vote
0answers
31 views

Magento 2 Issue with Minicart product price when price is set Including tax

Issue: Minicart is showing price excluding Taxes even if it is set in the backend to show product price including taxes Backend Settings: Product price is set to show including taxes: it is working ...
1
vote
1answer
42 views

Mini cart drop down not appearing

I have some issues on Magento 2.3.5 mini cart dropdown is not appearing. Total number of products added in cart appearing but when I click on the mini cart it shows a black transparent overlay and ...
1
vote
1answer
13 views

Header Links showing beyond search box and minicart beyond navigation !! Magento 2.3.5-p1

When a customer is signed in the header links (My account, My Wish List, SIgn Out) are displayed beyond the search box . See the image attached . I've noticed that there is an element.style {z-index:...
2
votes
0answers
25 views

Magento 2: How to bind an element in phtml with minicart js model function?

I want to print the items count in somewhere else, so i create a new phtml like this: <?php /** @var $block \Magento\Checkout\Block\Cart\Sidebar */ ?> <div class="test-cart" data-...
1
vote
0answers
26 views

How to disable redirect from mini cart to editing cart page if the minimum order amount is not reached

I want customers to just get an alert without redirecting. Trying to figure out where redirect is happening. Any suggestions? Magento 2.3.4. Thanks a lot.
0
votes
0answers
143 views

how to change the name in minicart magento 2.3

I want to update the name mini cart but i can't do it I had changed the return data from /var/www/html/GVC/sandbox/vendor/magento/module-checkout/CustomerData <?php /** * Copyright © Magento, Inc. ...
0
votes
0answers
43 views

I need to change the product name in cart and checkout page - magento 2.3

Note : I need changes when using the configurable product. I need to change the product name in the in the checkout and cart pages according to SKU because in the cart and check-out it shows the ...
0
votes
0answers
38 views

How to remake js code on jquery ui widget

I have a simple code that animates the appearance of a mini-cart modal window. <script type="text/javascript"> require(['jquery'], function($){ $(document).ready(function(){ ...
0
votes
0answers
61 views

How to get cross sell items in mini cart magento 2.3

How can we get cross sells items in mini cart in magento 2.3. please suggest any extension or best way to do it.
0
votes
1answer
96 views

Magento 2.3.3 Mini Cart Disable Checkout Button When A Product = $0.00

I want to disable the checkout button from the mini cart when an (or any) item is added that has $0.00 as a price. I have copied the minicart.phtml file from: /var/www/html/vendor/magento/module-...
0
votes
0answers
81 views

Animation for a mini-cart not working

How to make an animation to show and hide the mini-сart? Expected result: by clicking on the minimap, the block flies from above to its position Found a way using jquery UI I found a way using ...
0
votes
0answers
12 views

Magento 2: How to get multiple custom product attributes in mini cart

I need to show multiple custom attributes on the mini cart. Does anyone have idea? Thanks
0
votes
0answers
12 views

how to set custom variable in session when customer log in and also use that value in minicart.js

I'm using magento 2.3 while customer log in ,custom variable set to customer session and use that custom session value in minicart.js file.
0
votes
1answer
20 views

Change qty input to the counter of the number of products on mini-cart

How to change qty input to the counter of the number of products. Expected Result:
0
votes
1answer
62 views

Customize mini-cart - delete image and edit button

How to remove the picture and edit button from the mini-cart without using CSS Expected Result
0
votes
1answer
28 views

Magento 2 remove mini-cart content in cart page

How can I remove Magento 2.3.1 minicart content in checkout_cart_index (cart page), but keeping cart header link and counter?

1
2 3 4 5
9