• Resolved maryamk7

    (@maryamk7)


    My request sounds easy, but I’m not able to configure it. I want to change the word “product” in the new order email the customers received to “service”.. as we are offering services, not products.
    I searched for such request, I found that I have to edit this file “email-order-details.php ”
    instead, I have this “customer-appointment-confirmed.php” and I changed

    <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Product', 'woocommerce-appointments' ); ?></th>

    to

    <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Serivce', 'woocommerce-appointments' ); ?></th>

    I can find this file:
    customer-invoice.php
    it contains these lines about the order details:

    /**
     * Hook for the woocommerce_email_order_details.
     *
     * @hooked WC_Emails::order_details() Shows the order details table.
     * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
     * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
     * @since 2.5.0
     */
    do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

    where to find such method or file ??!

    but nothing changed
    anyone knows the solution for this?

    • This topic was modified 4 years, 3 months ago by maryamk7.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter maryamk7

    (@maryamk7)

    I just found this template “email-order-details.php ”
    I changed the product to service but nothing changed too!

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Generally, you should be able to override that email-order-details.php file (which contains the “Product”, “Quantity”, “Price” columns in the email) by copying it from the plugin files to a child theme as described in the documentation here:
    https://docs.woocommerce.com/document/template-structure/

    However, the customer-appointment-confirmed.php file and the snippets of code you included in your first message are not part of the core WooCommerce plugin — it appears they would be coming from a WooCommerce Appointments plugin. If that’s the case, I would recommend reaching out to support for that plugin to ask about this. It looks like that might be this plugin here (?): https://bizzthemes.com/plugins/woocommerce-appointments/

    If that’s the one you are using, there is a Support link on the page above.

    Otherwise, please send a screenshot of the email that you are trying to customize so we can take another look. I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on the page, then paste the URL in your reply here.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @maryamk7

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change product to service in email’ is closed to new replies.