Woocommerce::show_crossed_regular_price_on_cart( string $price, array $cart_item, string $cart_item_key )

Normally, WooCommerce doesn’t show the regular price on the cart, just shows the sale price.


Description

With that, the regular price is shown also as crossed on the cart.


Parameters

$price

(Required) that current price column value on the cart page.

$cart_item

(Required) current cart item.

$cart_item_key

(Required) cart item key.


Return

(string)


Source

File: inc/compatibility/woocommerce.php