In the block Your Order sidebar there is a block with the elements that are in the basket

It has 2 fields price and quantity

How to add one additional to these two fields, which is responsible for the amount based on the number of elements, as in the screenshot.

these fields are in vendor/magento/module-checkout/view/frontend/web/template/summary/item/details.html

Please help me how to calculate and get these prices on the front-end.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.