• Resolved adityajejurkar

    (@adityajejurkar)


    In woocommerce template I want to change the label text of Shipping, Tax, Subtotal in whole site as well in email template and invoice too. I searched the whole back end but didn’t get any success. Please see to it if you can help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi Aditya,

    The best way to handle changing text on your site is by using a free translation plugin like Loco Translate. This will allow you to find that phrase and change it to be what you’d like.

    Another option is the Say What? plugin that does much the same as far as translating targeted text.

    To update the text in emails you can use Template Overrides to make those edits.

    To get you started take a look at **WooCommerce -> Settings -> Emails** and edit an email. Look at the bottom for this section.

    Edit Email Templates
    Link to image: https://cld.wthms.co/IvbcHQ

    This will copy the template file to your themes folder where you can then edit it.

    Cheers!

    Thread Starter adityajejurkar

    (@adityajejurkar)

    I’ve also got this code from order-details.php

    <tfoot>
    <?php
    foreach ( $order->get_order_item_totals() as $key => $total ) {
    ?>
    <tr>
    <th scope=”row”><?php echo $total[‘label’]; ?></th>
    <td><?php echo ( ‘payment_method’ === $key ) ? esc_html( $total[‘value’] ) : $total[‘value’]; ?></td>
    </tr>
    <?php
    }
    ?>
    <?php if ( $order->get_customer_note() ) : ?>
    <tr>
    <th><?php _e( ‘Note:’, ‘woocommerce’ ); ?></th>
    <td><?php echo wptexturize( $order->get_customer_note() ); ?></td>
    </tr>
    <?php endif; ?>
    </tfoot>

    But there’s no mentioning of Subtotal or Tax in here. Where to find that

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce label text change’ is closed to new replies.