• Resolved tom89

    (@tom89)


    Hi. I have another question.
    I want to attach the url link to the product’s receipt with the automatic reply mail, except the time when the order status is “on hold” which means bank transfer. I don’t want to give the receipt to my customer because money will be paid in the future,not now. How can I do it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @tom89,

    From my understanding, you do not want to send the print link in the email when the order status is on-hold.

    If yes, then there is a function add_email_print_url() in the class-wcdn-theme.php file which is located at woocommerce-delivery-notes/includes/class-wcdn-theme.php path.

    In this file you will need to add a condition that if the order status is not ‘on-hold’ then execute the code.

    Please let me know whether the provided information helped you to achieve your requirement.

    Regards,
    Komal Maru

    Thread Starter tom89

    (@tom89)

    Thank you for your kind reply.
    Your understanding is correct. I do not want to send the print link in the email when the order status is on-hold.
    And I could understand I need to change codes in “woocommerce-delivery-notes/includes/class-wcdn-theme.php” . But I do not know how to fix it. Could you tell me it specifically?

    Hi @tom89,

    You will need to add the following get status condition to the line ‘if( get_option( ‘wcdn_email_print_link’ ) == ‘yes’ ) {‘.

    if( $order->get_status() != 'on-hold' && get_option( 'wcdn_email_print_link' ) == 'yes' ) {

    The line is present in the function add_email_print_url() in the class-wcdn-theme.php file which is located at woocommerce-delivery-notes/includes/class-wcdn-theme.php path.

    Please apply the same on your site and let me know the result.

    Regards,
    Komal Maru

    Thread Starter tom89

    (@tom89)

    Hi. Thank you for your answer.
    I applied your direction ant got the result I hoped.
    Thank you very much!
    I really appreciate you.

    Hi @tom89,

    I am glad to know that the provided fix helped you to achieve your requirement on your site.

    Please let me know if you have any further queries regarding our plugin.

    Regards,
    Komal Maru

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to stop attaching the URL link at “On Hold”’ is closed to new replies.