- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to remove minicart actions buttons
How can I remove the edit buttons and delete product in the mini-cart based on a specific sku?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to remove minicart actions buttons
Hello ramyarjaha31f0,
I hope you are doing well!
A mini cart is normally defined as a cart icon that discloses order outlines when clicked. You can delete a product and increment or decrement a product from the mini cart itself.
The following are the steps to remove the mini cart action buttons,
- First of all, Navigate to Stores > Settings > Configuration from the Magento admin panel.
- You must select the Checkout option from the Sales header on the left pane.
- Enlarge the Mini Cart header.
- Then, uncheck the Use System Value option in the Display Mini Cart field.
- You have to set the Display Mini Cart field to No.
- Now, save Config.
If you want to remove product actions div only for some products with specific sku and not for all products, then follow the below steps,
Do not directly change core files. You should override default.html in the custom theme.
Copy vendor/magento/module-
checkout/view/frontend/web/template/minicart/item/default.html
to
app/design/frontend/Vendor/theme/Magento_Checkout/web/template/minicart/item/default.html
And now remove product actions div from default.html. There is two way to see changes in static files. By removing the identical file from Do static-content:deploy OR pub/static
php bin/magento setup:static-content:deploy
Lastly, clean and flush the cache and see the changes.
php bin/magento cache:clean
php bin/magento cache:flush
I hope the above solution will help to resolve the issue.
--------------------------
Regards,
Rex M