Repository Forums Support WooCommerce Extended Coupon Features PRO Product price on order detail and email receipt

Topic Resolution: Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #960
    info17
    Participant

    How do I make free gift shows “FREE!” like on cart/checkout page?

    #961
    Soft79
    Keymaster

    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 .

    #962
    info17
    Participant

    Thank you.
    Also, is it possible to change “Free!” on cart/checkout page?
    My client doesn’t want “!”symbol.

    #963
    Soft79
    Keymaster

    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 );
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.