Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shipping time in email sent to customer #5

Open
alexsegura opened this issue Aug 30, 2018 · 2 comments
Open

Add shipping time in email sent to customer #5

alexsegura opened this issue Aug 30, 2018 · 2 comments

Comments

@alexsegura
Copy link
Member

No description provided.

@alexsegura alexsegura transferred this issue from coopcycle/coopcycle-wp Dec 30, 2019
@PasLoin
Copy link
Contributor

PasLoin commented Apr 17, 2020

Maybe a noob coding but we plan to manage this in function.php of the child theme ; this code work :

PasLoin/woo.delivery@5396395

@PasLoin
Copy link
Contributor

PasLoin commented Jul 31, 2020

Has i said noob version /**

  • Note: DO NOT! alter or remove the code above this text and only add your custom PHP functions below this text.
    */
`// afficher la date de livraison dans le mail de confirmation
 add_action( 'woocommerce_email_order_details', 'ts_email_order_details', 10, 4);

 function ts_email_order_details( $order, $sent_to_admin, $plain_text, $email ) {
   echo '<p><strong>Votre commande sera livrée le : </strong>'. get_post_meta( $order->id, "shipping_date", true ) .'</p>';`

At the end of function.php of the child theme and that's resolve this issue.

Maybe you prefer to implement directly to the plugin ? If yes i will try it in my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants