Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Product price on order detail and email receipt
How do I make free gift shows “FREE!” like on cart/checkout page?
This is generated by the following function call in woocommerce/templates/emails/email-order-items.php:
$order->get_formatted_line_subtotal( $item );
get_formatted_line_subtotal calls the following filter: (woocommerce/includes/abstracts/abstract-wc-order.php)
apply_filters( 'woocommerce_order_formatted_line_subtotal', $subtotal, $item, $this )
Long story short: Use the filter woocommerce_order_formatted_line_subtotal .
Thank you. Also, is it possible to change “Free!” on cart/checkout page? My client doesn’t want “!”symbol.
These filters are applied:
apply_filters( 'wjecf_free_cart_item_price', __('Free!', 'woocommerce'), $price_html, $cart_item, $cart_item_key ); apply_filters( 'wjecf_free_cart_item_subtotal', __('Free!', 'woocommerce'), $price_html, $cart_item, $cart_item_key );