• Good day,

    Let me start by saying that I cannot (yet) find a consistent way this is happening.

    The delivery date is a required field in our installation and I can confirm that the field is always properly filled by customers. No issues there!

    The problem is that this date isn’t always added to the order email confirmation. Most of the time it is, just in some occasions it isn’t and I cannot find a probable cause.
    Note that I’m a WordPress plugin developer myself and did go through the THWDTP_Public class in the hope I could find some hook order issue but couldn’t find an issue.

    It’s not a major issue since the dates are stored in the order and are visible through the order admin pages, it’s just a minor inconvenience for the client to not be able to instantly see these dates in the email.

    If you have any ideas or suggestions where the issue might come from, please let me know.

    Kind regards,

    Jory

Viewing 7 replies - 1 through 7 (of 7 total)
  • Elena

    (@elenathemehigh)

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    stevetish31

    (@stevetish31)

    I have this issue – but the dates are never being added to the customer or the email confirmation that goes to the website owner.

    We are trying to use the email notificaiton as the kitchen ticket to tell them to produce the food for collection and need the date and time on the emails

    Elena

    (@elenathemehigh)

    @stevetish31

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    We have the same problem. It is related to the payment method the customer uses. For a normal card payment the delivery/pickup date and time is added to the email. But for other payment methods that works by creating the order in one step and sending the payment in a second step the date and time is not added to the customers email.

    For us the problem occurs when using the payment method called Swish.

    Hi,

    I’m a developer of the Swish payment gateway that @jpsvensson mentioned. From what I can see the problem is lies with the get_additional_order_fields method (that is called by the add_meta_fields_in_email method) that is triggered by the woocommerce_email_order_meta_fields filter the class-thwdtp-public.php.

    The issue is that the meta fields are currently fetched directly from the WooCommerce checkout object (WC()->checkout->checkout_fields). The problem is that many gateways will not set the order as paid inside the same request as the checkout happens in. My payment gateway for example will do this later on via the WooCommerce Action Scheduler queue.

    A better way here would be to simply fetch the meta data directly from the order object instead. That way you’ll always be able to access the data whether it happens in the same request or not.

    /Carl

    Elena

    (@elenathemehigh)

    @jpsvensson

    We have already identified the issue you have mentioned.

    If you would like to get this sorted urgently, please feel free to submit a support ticket through our website. Our technical team will be happy to assist you promptly by providing an updated plugin file.

    Thank you!

    Elena

    (@elenathemehigh)

    @carlericsson
    Thank you so much for taking the time to investigate and share these insights, we really appreciate the detailed feedback!

    We’ve shared this with our development team, and we’re working on implementing this change.

    Thanks again for your valuable input!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.