• Resolved maeystudioviv

    (@maeystudioviv)


    Hello,

    The order ID in the email headers are still the ID of the order instead of the assigned order number with this plugin. How can I fix this problem?

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

    (@tychesoftwares)

    Hi @maeystudioviv,

    Do you mean that WooCommerce Order ID is getting displayed instead of the custom order number in the email header?

    Are you using a plugin for customizing email?

    Thread Starter maeystudioviv

    (@maeystudioviv)

    Hi,

    Yes, that is what I mean. For example it shows New order – #4253 (the ID number in the database) in stead of New order – #3696 (the custom order number).

    In the email body it shows the correct order number. See link: https://ibb.co/3WwBhpJ

    NO, I don’t use any email customizing plugin.

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @maeystudioviv,

    I have tried to replicate the issue at our end and it shows the Custom Order ID in the Email Subject and in the email body. Here is the screenshot of it: https://prnt.sc/1r14xe8

    Can you show me the setup you have done in our plugin in the email section? And tell me what’s the Payment method you used.

    Thread Starter maeystudioviv

    (@maeystudioviv)

    Hi,

    I have made some screenshots of the setting page of the custom order number and my plugin list:

    https://ibb.co/2MpY8RY
    https://ibb.co/rdDLB0h

    I use the payment methods Ideal, paypal, vouchers, rembours, belfius, sofort, kbc/cbc/ giropay and bancontact. All connected with Mollie

    Thread Starter maeystudioviv

    (@maeystudioviv)

    Hi,

    I have found the bug! It is a custom code in the theme of the site. In that code the email head is changed to a custom string with the hook: woocommerce_email_subject_new_order.

    Do you know how I can access the custom order number with order ID? So I can edit the custom string to the new order number.

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @maeystudioviv,

    Yes, I know that. You will have to use the below code for Custom Order Number instead of the code used for Order ID:

    $custom_order_number = $order->get_order_number(); //where $order is an order object

    Do let me know if you have any questions.

    Thread Starter maeystudioviv

    (@maeystudioviv)

    Hello,

    Thank you for the code snippet. This solved the problem!

    I have no other questions at the moment! Thanks!

    Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @maeystudioviv,

    Glad we could help you to solve your problem. Feel free to leave a review here on our plugin’s review page. That would be really helpful.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Order ID in email header’ is closed to new replies.