[Plugin: WooCommerce] Count if order quantity is more than 1 for email template
-
I’m trying to edit the default Woocommerce completed & processing emails that are sent after checking out with some conditional criteria. I have some info to include that is only relevant if a customer purchased a quantity greater than 1 of any product. I managed to customise the email for other criteria but no idea how to count the item quantity.
Essentially I want the email to say something like:
<p><?php
if ( 1 < $order->qty ) {
printf( __( “CUSTOM MESSAGE 1”));}
else {
printf( __( “CUSTOM MESSAGE 2”));}
?></p>
- The topic ‘[Plugin: WooCommerce] Count if order quantity is more than 1 for email template’ is closed to new replies.