Это можно сделать Переопределение следующих шаблонов WooCommerce через тему .
Связанные шаблоны s * email/email-order-items.php
и emails/email-order-details.php
.
После того, как вы скопировали этот шаблон в yourtheme/woocommerce/emails/email-order-items.php
, а также yourtheme/woocommerce/emails/email-order-details.php
откройте, отредактируйте его:
1) Для шаблона email/email-order-items.php
:
Измените в строке 78 <td colspan="3"
на <td colspan="2"
Снимите следующий кодовый блок со строки 66 на68:
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ) ); ?>
2) Для шаблона email/email-order-details.php
:
Изменить в строке 70 <th class="td" scope="row" colspan="2"
до <th class="td" scope="row"
Измените в строке 79 <th class="td" scope="row" colspan="2"
на <th class="td" scope="row"
Удалите кодовый блок из строки 45:
<th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
Сохраните оба шаблона, все готово ... Вы получите что-то вроде: