Email when save and custom email in child
-
Hi,
1- is there a way to send email when you put tracking information and you click on save?
2- we use a customer-completed-order email in child theme/woocoomerce/email and it doesn’t work. Is there a way to fix this problem?Thanks so much
-
This topic was modified 5 years, 8 months ago by
emporio3.
-
This topic was modified 5 years, 8 months ago by
-
Hi, at this point, when you enter tracking info and save it, you are only saving the tracking info without reloading the page. after saving, you can add more tracking # to the order, and then change the order status to shipped (completed) and the confirmation email will be sent to your customer with the tracking info.
If you mean that you would like us to add another option in the save tracking info to set the order as shipped when clicking save? this will result in updating and loading the page, nice idea, I will add it to our roadmap for the future ??
ThanksHi,
I updatet after your answer…so will explain bettere here.1- I already have a trigger for completed order so I want to send email with tracking information when you click save (on plugin) or other way like another button.
2- I use a custom email customer-completed-order in child theme/woocommerce/email and it doesn’t work. Is there a fix for this?
Thanks
1. you mean to save time and avoid the need to change the status and update the order again, , so we will add it to our plugin roadmap for future releases
2. we allow full customizations in our delivered email customizer and there is no way to update this page but I will check if we can allow override in the future. which customizations did you add?
Is there a way to have one of this way soon cause we use it a lot and we have problem.
In email customer-order-receive we cleared all and we just write some phrase..We would to put over the shipping tracking information.
Here our email in child theme:<?php
/**
* Customer completed order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails
* @version 3.5.0
*/if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}/*
* @hooked WC_Emails::email_header() Output the email header
*/
do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?><?php /* translators: %s: Customer first name */ ?>
<p><?php printf( esc_html__( ‘Ciao %s,’, ‘woocommerce’ ), esc_html( $order->get_billing_first_name() ) ); ?></p>
<?php /* translators: %s: Site title */ ?>
<p><?php esc_html_e( ‘Abbiamo elaborato il tuo ordine!’, ‘woocommerce’ ); ?></p>
</p>
<?phpOh, if that the case, this is a feature we offer, to customize the delivered email, since I thought like you, the Delivered email should not include the same info as other emails, so we added the option to remove the shipping info and order and tracking info from the email and you can just keep the
remove your custom delivered template. in our plugin settings., go to email notifications tab, edit your delivered email orders settings in the email customizer like in this example
https://www.dropbox.com/s/2mfen016llu3pzq/AST-email-customizer.png?dl=0Ok but which is the trigger?
The change status to delivered? We don’t want this, we want trigger on status completed or when save the tracking.
Email start when you save order to completed (or save tracking plugin)
The email that I show you is our customer-completed-order template not the deliver email templateYes, the idea is that users will get editable checkbox when adding tracking info and would be able to set their preferred default in the plugin settings.
We already provide this option in the API and Bulk import options.
Thanks-
This reply was modified 5 years, 8 months ago by
Zorem.
Hi,
we customize the delivered email but don’t add tracking information to custom email.
Is ther a way to solve? or to have plugin that if you click save send email?Solve would be better for us:
this is our custom email that send when order become completed:
<?php
/**
* Customer completed order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails
* @version 3.5.0
*/if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}/*
* @hooked WC_Emails::email_header() Output the email header
*/
do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?><?php /* translators: %s: Customer first name */ ?>
<p><?php printf( esc_html__( ‘Ciao %s,’, ‘woocommerce’ ), esc_html( $order->get_billing_first_name() ) ); ?></p>
<?php /* translators: %s: Site title */ ?>
<p><?php esc_html_e( ‘Abbiamo elaborato il tuo ordine!’, ‘woocommerce’ ); ?></p>
</p>
<?phpThanks so much
-
This reply was modified 5 years, 7 months ago by
emporio3.
Hi, @emporio3 Can you try to explain, Do you want to display the tracking on your custom completed email or NOT to display the tracking?
I want to display
Hi,
What you removed all the WC hooks from the email. We work with hooks to add the tracking info to email:
woocommerce_email_before_order_table ($order, $sent_to_admin, $plain_text, $email)You can add this hook in your template custom code so it will work.
do_action( ‘woocommerce_email_before_order_table’, $order, $sent_to_admin, $plain_text, $email );
Anyway, i would suggest to work with Hooks for advanced email customization:
https://businessbloomer.com/woocommerce-visual-hook-guide-emails/ -
This reply was modified 5 years, 8 months ago by
- The topic ‘Email when save and custom email in child’ is closed to new replies.