Моя цель выглядит следующим образом: 
Я попробовал этот код, чтобы добиться этого:
add_filter( 'woocommerce_cart_item_subtotal', 'show_coupon_item_subtotal_discount', 100, 3 );
function show_coupon_item_subtotal_discount( $subtotal, $cart_item, $cart_item_key ){
if( $cart_item['line_subtotal'] !== $cart_item['line_total'] ) {
$subtotal = sprintf( '<del>%s</del> <ins>%s<ins>', wc_price($cart_item['line_subtotal']), wc_price($cart_item['line_total']) );
}
return $subtotal;
}
Но, к сожалению, неверная ценаВы можете увидеть здесь.Что не так с этим кодом?

Это касается этой страницы: keimster.de/kasse