This topic has 22 replies, 2 voices, and was last updated 1 years, 2 months ago ago by Rose Tyler
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
Hello,
Thank you for getting in touch with us.
Please check next topics – https://www.8theme.com/topic/woocommerce-shipment-tracking-extension/ https://www.8theme.com/topic/email-builder-tracking-number-in-completed-emails/ https://www.8theme.com/topic/problem-with-email-builder-not-displaying-3rd-party-shortcodes-content/ https://www.8theme.com/topic/order-info-from-customer-does-not-show-up-in-mail-to-us/
Kind Regards,
8theme team
Thanks for the reply, i have already read those and they did not answer my question. any help would be appreciated
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
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.
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
I have tried but there are no options to add the shortcodes just a dropdown
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
no problem
Hello,
We appreciate your prompt response.
Please check credentials https://prnt.sc/JXEmwpVstfa1
Kind Regards,
8theme team
try again
Hello,
https://prnt.sc/SJl7Q4YsRUYt – please check one more time and provide the correct credentials.
Kind Regards,
8theme team
try again
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
new password
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
where would i go about adding this ?
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
i have (woocomerce) and they said talk to you, i’ll check the credentials
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
i passed on your message to Woocomerce and the reply is what i have told you, they batted it back to yourselves….
Hello,
It is very pity that official WooCommerce devs could not provide you with information about what hook they use to output their own plugin content.
So, we downloaded the archive of the WooCommerce Shipment tracking plugin and found they use the next hook “woocommerce_email_before_order_table“ for showing tracking information → https://prnt.sc/-aUx0KpgXtTr . It means that once you add in our Email Builder WC Hook element and choose same hook “woocommerce_email_before_order_table“ → https://prnt.sc/pFUYVIx44bzoWooCommerce Shipment tracking plugin should start own code and add tracking information in the placement of such hook you set.
Please, try to add it in the emails you prefer and test it on real orders.
Waiting for your response!
Warm regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up