Using Custom Status in Email Template
-
I’m trying to do something I think should be simple, but isn’t working.
In my completed-order email template, I’m using:
<?php if ( $order->has_status( 'wc-hand' ) ) { ?> DO MY STUFF HERE
I verified in my wp_wc_order_stats table that the order has the status I want.
But DO MY STUFF HERE isn’t showing up in my email.
If I use a stock status, such as:
<?php if ( $order->has_status( 'pending' ) ) { ?> DO STUFF
It works.
I don’t know why it’s ignoring my custom statuses, but it is.
Pointers? Thoughts? Am I going about this all wrong?
All I ultimately want to do is change the text in my completed order email if an order is hand delivered versus shipped.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using Custom Status in Email Template’ is closed to new replies.