0
votes

Suddenly new order email notifications that my Woocommerce sends stopped displaying product items.

Thead content (product/price/quantity) is displayed but table content is empty. The email template is intact - for some reason product items are not loaded.

My WP core, Woocommerce and all of the plugins are up to date. I tried with PHP 5.4 and 7.1 and the problem persists in both cases.

Any ideas?

1
Did you tried to disable plugins to prevent a plugin conflict?jjj
Yes, I did that in addition as well. I disabled ALL of the plugins except Woocommerce. Including SMTP plugin. The problem is still there. This is really mind-boggling.Joe Dev
maybe the email template is override in your theme?jjj
Nope, I'm using Twenty Sixteen Child Theme - it uses default theme's email templates. In fact, I even tried to copy the email templates to my childtheme - the problem is there in both cases.Joe Dev
Everything works fine with parent theme active! It must be related to my functions.php changes of the childtheme somehow. :)Joe Dev

1 Answers

0
votes

I was using "woocommerce_new_order" hook in my functions.php file, that was causing the issue.

The solution was to replace it with another hook -> "woocommerce_checkout_order_processed"