In the standard OpenCart template, there is a $ cart variable that displays the button for the current state of the user's cart. This displays the total number of items in the cart and the total amount of items ordered.
How to display the total number of products in the basket, for example, in the header of the site?