Answer the question
In order to leave comments, you need to log in
How to display the total price and total discount on the cart page?
I just can’t understand how you can get a total discount for all products on the shopping cart page in this place?
So it displays 2 values, but how to display the total discount?
$items = WC()->cart->get_cart();
foreach($items as $item => $values) {
$price_sale = $values['data']->get_sale_price();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question