• Resolved zhuzh1

    (@zhuzh1)


    I am working on a woocommerce + product vendors app.

    Various email notifications, e.g. New Order Created, contain the date when the order was place without Time Stamp (hour:minute): https://drive.google.com/file/d/1mAji9G6lXhGpdTQ4zex0o0ar_s47rV4l/

    How to add hour + minute to the notification?

    I know I probably should manipulate text filters. My, more generic, question is: how do I find out which filter should manipulate? Is there a list/inventory of all available filters/hooks available to developers?

    Thanks

    JohnZ

Viewing 1 replies (of 1 total)
  • Thread Starter zhuzh1

    (@zhuzh1)

    I ended up modifying the code in order-email-to-vendors.php. I did

    1. retrieve vendor timezone from $vendor_data[timezone] as the app is a multi-vendor marketplace
    2. convert the $order_date to the timezone:
    $order_date->setTimeZone(new DateTimeZone(timezone),
    then
    3. use $order_date->format(…) to add the date (including the hour and minute) into the email.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add TimeStamp on Email Notifications’ is closed to new replies.