Hi im trying to add increment and decrement buttons to qty in minicart like that:
tried to edit Magento_Checkout/templates/cart/item/default.phtml, but it edits only the cart edit page and not the mini cart.
wich phtml file I should edit for minicart qty?
For mini-cart, the phtml file will be :
override in your theme at :
Hope it helps !
Let me tell you that you can find the source file of any content on the page. There is a feature template hints in magento by default. By enableing this feature you can get the path to each template that is used on the page. Template path hints can be enabled for either the storefront or the Admin.
php bin/magento dev:template-hints:enable php bin/magento dev:template-hints:disable
first of all check that you are in developer mode.
The file you need to update for the add button on minicart is
copy this file into your theme in appropriate location
and now you can update this file.
Find helpful? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!
The input field file is not actually working with php (not phtml), it's working on knockout JS file, You can find the input field html inside :
and the linked JS is :
Read this blog if want to understand how knockout JS works, as it's a pain for most of the developer though
Hope it helps !!
please check this link mark as accepted solution work for you
Find helpful ?Consider Giving Kudos to this post.
Problem solved? ClickAccept as Solution!