Adding tracking details to email builder template hook not pulling through

This topic has 22 replies, 2 voices, and was last updated 6 months, 3 weeks ago ago by Rose Tyler

  • Avatar: fatunicorn
    fat unicorn
    Participant
    October 12, 2023 at 17:22

    hi the email_order_meta isn’t pulling through the tracking details from the customer order, even though the woocomerce tracking plugin documentation tells me that that’s where it should be stored, how do i add this information ?

    in the standard template i add
    if ( function_exists( ‘wc_st_add_tracking_number’ ) ) {
    wc_st_add_tracking_number( $order_id, $tracking_number, $provider, $date_shipped, $custom_url );
    }

    to the child template

    any help would be appreciated

    21 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 06:54
    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 08:50

    Thanks for the reply, i have already read those and they did not answer my question. any help would be appreciated

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 09:51

    Hello,

    What plugin do you use to show tracking details on emails when our Email Builder is disabled?
    If you do not use the plugin just your custom code, is it work fine when our builder is disabled?
    Please describe in detail with screenshots.

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 10:10

    We use woocomerce shipment tracking, when the editor is disabled it pulls the data through to the standard email template that has been edited with the above code.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 12:43

    Hello,

    We appreciate your prompt response.

    Have you tried to use Hook element in the Builder and add there shortcode from the woocomerce shipment tracking plugin?

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 12:56

    I have tried but there are no options to add the shortcodes just a dropdown

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 13:07

    Hello,

    We appreciate your prompt response.

    Could you please provide temporary wp-admin and FTP access?

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.

    To create FTP access (FTP host, FTP username, FTP password, FTP port, FTP encryption) , please contact your hosting provider for assistance.

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 14:32

    no problem

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 14:34

    Hello,

    We appreciate your prompt response.

    Please check credentials https://prnt.sc/JXEmwpVstfa1

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 14:36

    try again

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 15:19

    Hello,

    https://prnt.sc/SJl7Q4YsRUYt – please check one more time and provide the correct credentials.

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 15:35

    try again

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 13, 2023 at 16:05

    Hello,

    Credentials are incorrect still.
    Before your reply, please try to log in by yourself using the credentials you provided for us.

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: fatunicorn
    fat unicorn
    Participant
    October 13, 2023 at 16:12

    new password

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 16, 2023 at 07:23

    Hello,

    Thank you for your response and for wp-admin access.
    Without FTP access, we will not make changes to files on your site.

    We recommend that you clarify with the plugin you are using for tracking, to use a code similar to the one provided:

    
    add_action('woocommerce_email_order_meta', function($order, $sent_to_admin = false, $plain_text = false, $email = '') {
        if ( function_exists( 'wc_st_add_tracking_number' ) ) {
            wc_st_add_tracking_number( $order_id, $tracking_number, $provider, $date_shipped, $custom_url );
        }
    }, 10, 3);

    However, do not add this exact code as it will certainly cause a fatal error. Instead, use the code you intended to use with the hook ‘woocommerce_email_order_meta’. Additionally, this hook should be added to the content builder template (https://availoptics.com/wp-content/uploads/2023/10/Screenshot-2023-10-13-at-12.52.49.png). It is important for you to find out and determine how to take all parameters into their function, namely $tracking_number, $provider, $date_shipped, $custom_url.

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 16, 2023 at 12:39

    where would i go about adding this ?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 16, 2023 at 13:41

    Hello,

    We can’t connect FTP using the credentials you provided. Please try to connect using Filezilla and let us know correct credentials then.

    Please read our response one more time carefully and contact the plugin author’s (you can provide them with our response) – https://prnt.sc/_YNHVovaDDnN

    Kind Regards,
    8theme team

    Avatar: fatunicorn
    fat unicorn
    Participant
    October 16, 2023 at 13:50

    i have (woocomerce) and they said talk to you, i’ll check the credentials

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 16, 2023 at 15:01

    Hello,

    1/ Our developers will be able to check the situation more deeply only in case you provide FTP access.
    In case we use the Appearance theme editor or ftp plugin to add fix/code and any fatal error appears during the work we’ll be blocked and the site will be down. We need FTP. We would not ask for FTP if we could use the Appearance theme editor or File Manager, you need to understand that.
    We need FTP access to your wp-content folder at least.

    2/ “i have (woocomerce) and they said talk to you” – and here is our response – https://prnt.sc/3IZen0K1fMYm , let us know what they say.

    Please note that we do not give a guarantee for full theme compatibility with all existing 3rd party plugins. Sometimes, not always, you need additionally customize the theme or plugin to make them work together. Unfortunately, it’s not possible for the author to make the theme compatible with all the existing plugins and additional customization is outside the scope of our basic support.
    We want to help you, so please, cooperate with us.

    Kind Regards,
    8theme team

  • 1 2
    Viewing 20 results - 1 through 20 (of 22 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.