PS. I tried the code below, this is bringing the customer to the “thank you” page, but it doesn’t send any e-mails.
add_filter( 'woocommerce_defer_transactional_emails', '__return_true' );
We are using “custom orderstatus” as a plugin, maybe that is causing an error?
Missy a11n
(@m155y5)
Automattic Happiness Engineer
Hi @oberning –
I believe these two issues may be unrelated.
For the emails, it sounds like your emails may be getting blocked. To begin to troubleshoot this, I would recommend you install the (free) WP Mail Logging plugin. This plugin will log all outgoing mails so you can see what is actually being sent.
It’s pretty common for emails to get rejected by email providers when the email is generated by _localhost_, which is what WordPress does by default. To remedy this issue, you’ll need to set up an SMTP email plugin to send mail for you. The free plugin WP SMTP is a good option for that.
If that doesn’t help resolve the issue, pease have a look at our Email FAQ page here for some of the most common reasons why emails do not send and how to correct them. You can also reach back out to us for assistance, of course. 🙂
Since a week ago we are getting an error box when checking out but it is empty.
Can you tell us a bit more about what you are seeing here? A screenshot would be helpful as well. Thanks!
Hi @m155y5
Thank you for your reply. We are already using a SMTP provider, Send in Blue. I just send a test email which was send. But I will try the WP Mail logging and I will continue this topic at the plugin, thank you 🙂
For the error, I am just getting an empty error box. See the screenshot below:
https://www.fosamsterdam.nl/wp-content/uploads/Error-Console.png
I added the console to give more information.
I also checked the WooCommerce log.
These are the fatal errors that happened today.
https://www.fosamsterdam.nl/wp-content/uploads/Fatal-errors-2-februari.png
I may just delete some of these rows without complications?
It’s solved!
I made a mistake in getting the billing_company. (I wrote get_formatted_billing_company where it should be get_billing_company)
All is working fine now 🙂
Although, I have a a question about the other errors that I am getting in the log. Should I try to solve them to make my website cleaner and faster?
Best,
Olga
Missy a11n
(@m155y5)
Automattic Happiness Engineer
Hhi @oberning –
Thank you for the update! That’s great news. 🙂
>Although, I have a a question about the other errors that I am getting in the log. Should I try to solve them to make my website cleaner and faster?
We can try to help you with those. I’m going to go ahead and mark this particular thread as resolved. Would you mind opening a new thread for your question on the logs, so it’s more easily searchable by future folks with similar issues?
Thank you!