Removing total from order-details.php in Woocommerce
-
I have a client who wants to use Woocommerce just for ordering,
shipping and payments will be added later.
I have managed to pull the subtotal, shipping and payments from everything – EXCEPT order-details.php – so that subtotal and total still show on the my account, and after checkout.I can remove BOTH (by commenting out the below code, or have both showing. But I’m totally lost how to get just ONE of them.
offending bit of code is:
<?php if ( $totals = $order->get_order_item_totals() ) foreach ( $totals as $total ) : ?> <tr> <th scope="row"><?php echo $total['label']; ?></th> <td><?php echo $total['value']; ?></td> </tr> <?php endforeach; ?>
Can anyone help with this? Totally lost as to how to do it.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing total from order-details.php in Woocommerce’ is closed to new replies.