Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author alexmustin

    (@alexmustin)

    Hi @rggallison,

    I’m not sure I understand what you’re asking — can you provide more details on what you mean by “the downloads email” ?

    Thanks!

    Thread Starter rggallison

    (@rggallison)

    When you have a downloadproduct on woocommerce, the completed order email has a table of all the links to download the files. This comes before your custom text

    Plugin Author alexmustin

    (@alexmustin)

    Ah ok, thanks for clarifying.

    I will try to do some research on my end, and see if there’s an issue with the Downloadable Product emails. I will report back here with my findings.

    Thread Starter rggallison

    (@rggallison)

    Thank you! I tried looking myself, but couldn’t figure it out. You are way more familiar with everything.

    1magicfun

    (@1magicfun)

    Hi, any update to put it before the “downloads” section…I am having the same issue. If you have downloads, it puts it near the middle of the page, where it can be easily lost. I want to see an area at the very top after the sentence “your order has been marked complete on our side.” Seems like a quick fix. Is this possible?

    Thread Starter rggallison

    (@rggallison)

    After a lot of digging, I discovered this template file:
    https://github.com/woocommerce/woocommerce/blob/master/templates/order/order-details.php

    if we override the file with one of our own and move the bit at line 31 to line 92, that should put the table after order details section. Can also move to line 52 be before order details and after the “woocommerce_email_before_order_table” hook that this plugin uses

    Here’s a good reference to the email hooks: https://businessbloomer.com/woocommerce-visual-hook-guide-emails/

    • This reply was modified 4 years, 11 months ago by rggallison.
    Thread Starter rggallison

    (@rggallison)

    Oops, wrong file. looks like the file is woocommerce/includes/class-wc-emails.php

    • This reply was modified 4 years, 11 months ago by rggallison.

    It’s really a good plugin.
    But I had the same problem – I changed the order of

    add_action( ‘woocommerce_email_order_details’, array( $this, ‘order_details’ ), 10, 4 );
    add_action( ‘woocommerce_email_order_details’, array( $this, ‘order_downloads’ ), 10, 4 );

    in class-wc-emails.php.

    Now the download section is after order details. Would it be possible to change this in plugin that the added message will be visible before order details AND also before order downloads if there are any? So that order downloads will be still the first thing after added message?

    • This reply was modified 4 years, 9 months ago by mojcak.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Move custom text before downloads’ is closed to new replies.