• Resolved Ares

    (@ismartpink)


    May I ask you how you add a custom hook to the email template? I can’t figure this out.

    I use plugin WooCommerce Shipment Tracking

    My plugin has a meta key _wc_shipment_tracking_items and says Developers can use the helper function wc_st_add_tracking_number to add tracking info to the order. In this helper function, the field $custom_url is optional.
    if ( function_exists( ‘wc_st_add_tracking_number’ ) ) {wc_st_add_tracking_number( $order_id, $tracking_number, $provider, $date_shipped, $custom_url );}

    Which one of the meta key or function I should integrate and how?
    This may be a Pro plugin feature but I want to know in advance how this is being done exactly or I’m not going to buy this plugin. I’m a newbie I can’t hire a developer so I have to figure it out can it be done easily or not.

    I have code snippet plugin. Please share what is a full php function code to integrate this plugin to your custom email.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    This is the problem of compatibility with 3rd plugins, with the shipment tracking plugins, you can try one of these instructions:

    1. If the tracking info displays on the default WooCommerce email orders, You can use the WC hook element, and drag and drop them to the different positions of the order table.
    2. Write shortcodes by yourself to display tracking info.

    Best regards.

    • This reply was modified 1 year, 10 months ago by villasupport.
    Thread Starter Ares

    (@ismartpink)

    1. Because I don’t use default WooCommere email order template this is not a solution. All of my templates are customized.
    2. That sounds like a good solution, I’m not familiar with coding, but perhaps you can send me some hints, i.e how should this shortcode look in full.
      If you help me with this shortcode – I’m buying this plugin, and I’m sure many more people will buy it as there are many 3rd party tracking plugins that are not compatible with your plugin out of the box.

    Hi,

    Yes, we will support the shortcodes to display tracking info in the premium version.

    Best regards.

    Thread Starter Ares

    (@ismartpink)

    You mean to write a php Shortcode using “Code Snippets” plugin?

    • This reply was modified 1 year, 10 months ago by Ares.

    Hi,

    In the premium version, we provide support for a shortcode that retrieves information from the order meta. However, if you encounter any issues with this shortcode, we will offer support for custom shortcodes to retrieve information if it has been saved on the order.

    Best regards.

    Thread Starter Ares

    (@ismartpink)

    Can you compile this php shortcode to integrate this plugin’s tracking into your email?

    Knowing that it works I would go ahead and buy your plugin, I believe others would buy the Premium version too as it would give people trust that this plugin does really support integrating tracking numbers from 3rd party plugins.

    Besides I need those extra features the Pro version offers. It’s just a first step gaining your trust.

    Hi,

    Please contact us at [email protected] for further assistance.

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Integrate custom plugin hook’ is closed to new replies.