woocommerce conditional email template if product type in order – WordPress
I try to send a customized email template when a customer has a ticket (custom product type) in cart. I have the following: function bc_customer_completed_order_template($template, $template_name, $template_path) { foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { $product = wc_get_product(…