• Resolved mak633

    (@mak633)


    I tried at this file email-order-details.php this code

    <tfoot>
    		<?php
    			if ( $totals = $order->get_order_item_totals() ) {
    				$i = 0;
    				foreach ( $totals as $total ) {
    					$i++;
    					if ( ($total['label'] != 'Subtotal:') || ($total['label'] !== 'Subtotal:') ) :
    					?><tr class="321341">
    						<th class="td" scope="row" colspan="2" style="text-align:left; <?php if ( $i === 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['label']; ?></th>
    						<td class="td" style="text-align:left; <?php if ( $i === 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['value']; ?></td>
    					</tr><?php
    					endif;
    				}
    			}
    		?>
    	</tfoot>

    But it does not work.
    Can you help me.

    https://wordpress.org/plugins/woocommerce/

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove Subtotal from email’ is closed to new replies.