• Hi,

    In the customer processing, completed order templates, we do not want the links to items bought. https://paste.pics/7HE5H
    How to remove them? we want only the order table.

    2. How to remove sub-total and move total to that place? we don’t need sub-total and replace it with total, with payment method as the last field. how to do this?

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,
    1. You would need to change how woocommerce works to remove the downloads table from your emails.

    Something like this custom function could work:

    add_action( 'woocommerce_email', 'custom_remove_email_order_downloads', 10, 1 );
    function custom_remove_email_order_downloads( $emails ){
        remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );
    }

    2. Again this would require you to change how woocommerce works, the scope of this plugin is mostly around styling so removing or changing how woocommerce works by default isn’t really part of the scope.

    you would need to look at this filter: woocommerce_get_order_item_totals inside woocommerce core to see about changing that, it would affect everywhere not just emails.

    Ben

    Thread Starter arvindpr

    (@arvindpr)

    Hi ben,
    to add that function I need to have child template?

    hannah

    (@hannahritner)

    Hi @arvindpr,
    Yes, that’s correct. You can read about child themes from here: https://www.kadencewp.com/child-themes

    Hannah

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove product links, sub total’ is closed to new replies.