WordPress.org

Ready to get started?Download WordPress

Forums

Order Delivery Date for Woocommerce
[resolved] Show Delivery Date in Customer Notification Email: Not working (7 posts)

  1. raisonon
    Member
    Posted 1 year ago #

    Hi,

    It seems the delivery date is not appearing in the order confirmation emails.

    I know we can edit these emails manually by going into woocommerce/templates/emails/ - but what is the code to add to get the order delivery information in.

    Or, and perhaps better, any ideas why the order delivery date is not being added to the emails. We can see it coming through on an order per order basis, but the customers need to see this in their email.

    Thanks

    Elliot

    http://wordpress.org/extend/plugins/order-delivery-date-for-woocommerce/

  2. ashokrane
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Elliot,

    For the delivery date to appear in the customer order confirmation emails, the option "Show Delivery Date in Customer Notification Email" should be selected in the "Date Settings" tab. Is that selected & still the delivery date does not appear in the customer emails?

    You don't need to edit any of the existing email templates. That will only cause problems in future updates of Woocommerce & the delivery date plugin.

    Thanks, Ashok.

  3. raisonon
    Member
    Posted 1 year ago #

    Hi Ashok,

    Thanks for your reply. That option is ticked and we are not getting the delivery date in the emails.

    Any ideas?

    Thanks

    E

  4. ashokrane
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Elliot,

    It seems there is a problem with the emails. I am working on them right now. Also fixing it such that the delivery date also appears for the admin notification emails.

    :Ashok

  5. ashokrane
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for pointing it out.

  6. raisonon
    Member
    Posted 1 year ago #

    Fantasti Ashok - Thanks

    While you are working on this... We also need to add the delivery date one more place. Would you be able to help?

    We are using the Woo Extension called PIP (Print invoice and packing list). We print off all our orders. We really need the delivery date to be printed on these templates so the guys in the store know when to send them out.

    The plugin allows you to make custom templates and add extra html to the print outs. I don't mind doing this, but what code should I use to add the delivery date to the loop? Alternatively it would be great if you auto-added like you are doing with the emails, but I wouldn't know which hooks allowed that.

    If you would like to see these templates then do let me know. Thanks for all your help.

    Elliot

  7. ashokrane
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Elliot,

    You can put the following code so that the delivery date appears on the invoice printed using the PIP plugin.

    <?php 
    
    $delivery_date_label = get_option('orddd_delivery_date_field_label');
    if ($order->order_custom_fields[$delivery_date_label][0] != '') { ?>
    <div>
      <h3><?php _e('Delivery Date', 'woocommerce-pip'); ?></h3> <?php echo $order->order_custom_fields[$delivery_date_label][0]; ?>
    </div>
    
    <?php } ?>

    The code has to be written in 'template.php' file. This code will have to be hardcoded in the Print invoices plugin as there doesn't seem to be a way where extra fields can be added through some hook.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags