Is there any way to change the count of items displayed beside the cart icon?

Currently if I add 2 products with an item count of 100 each this count shows 200. Our customer would like it to only display 2 in this example (as in 2 different products).

screenshot of the count of items in a cart

I would be open to overriding Magento core functions, if that is necessary to get this working.

1 Answer 1


You can display number of items instead of number of qty, apply below setting and check

Admin >> Store >> Configuration >> Sales >> Checkout >> My cart link
>> Display Cart Summary >> Display number of items in cart >> Save.
  • Thank you so much, didn't think it would be that easy :)
    – gerryka
    May 4, 2018 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.