Show Strikethrough Regular Price in Cart and Checkout WordPress Function
What it does?
-
Hooks into all key spots: Cart line items, checkout line items, and the mini-cart/widget.
-
Sale-aware display: If an item is on sale, prepends the regular price as a strikethrough before the current price.
-
Light styling included: Adds inline styles for the crossed-out amount (you can move this to your theme CSS).
Why it’s useful?
-
Improves transparency: Shoppers see the discount right where they decide, reducing hesitation.
-
Reinforces promotions: Clear before/after pricing increases perceived value and conversion.
-
Consistent UX: The same savings presentation appears in cart, checkout, and mini-cart.
