• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2966

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Log in

Show the discount on the email invoice for each Individual Item in WooCommerce

$13.50

Category: WooCommerce Tags: get_id, get_post_meta, get_price_html, get_product, woocommerce_order_formatted_line_subtotal
  • Description

This code adds the regular price next to the discounted sale price on order emails for the customers invoice. By default, only the discounted price is shown however you can also display the regular price with a strikethrough for each product subtotal like this :

The discounted sale price and crossed out regular price are shown for every item like this :

You can also use a custom field to add additional content before or after the price in the price column on order emails.

Installation

Copy and paste the PHP code to the end of your child themes functions file.

To use the value from a custom field, use the 2nd code snippet.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Tags
  • Account
  • Checkout
  • Cart
  • Hire Me
  • Log in
 

Loading Comments...