• Hi. When sending a letter does not display the ordered product.
    In template a letter email-order-details.php `echo wc_get_email_order_items( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    $order,
    array(
    ‘show_sku’ => $sent_to_admin,
    ‘show_image’ => false,
    ‘image_size’ => array( 32, 32 ),
    ‘plain_text’ => $plain_text,
    ‘sent_to_admin’ => $sent_to_admin,
    )
    );`
    empty array or $order->get_items() array empty

The topic ‘Show in Email new order $order->get_items() array empty’ is closed to new replies.