cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a additional Field 'Total Savings' and print Totalvalue in Summary Section magento 2.3

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to add a additional Field 'Total Savings' and print Totalvalue in Summary Section magento 2.3

mage 2 qstn.jpg

How to Display Total Savings like above mentioned screenshot

the below code '$savings' Print savings amount of One product in default.phtml

app/code/{vendor}/{module)/view/frontend/templates/cart/item/default.phtml

$savings=($_item->getProduct()->getPrice()-$_item->getProduct()->getFinalPrice())*$block->getQty();

I need to print Sum of total added product savings amount  in summary section