• Resolved glenbassboss

    (@glenbassboss)


    Hi, was interested in understanding the extensibility of shortcodes in Yaymail.

    You do have quite a few more options that Woo comes with natively, but i was curious about extending the capabilities. For things like Delivery Date, which may update over time and be sent in later emails. Also tracking numbers.

    What i do see is the CUSTOM ORDER META area, which appears to pull in data from some plugins we have installed, like this:

    CUSTOM ORDER META:
    [yaymail_order_meta:activecampaign_for_woocommerce_persistent_cart_id]
    [yaymail_order_meta:_wc_facebook_for_woocommerce_order_placed]
    [yaymail_order_meta:wpml_language]
    [yaymail_order_meta:is_vat_exempt]
    [yaymail_order_meta:_wc_stripe_mode]
    [yaymail_order_meta:_wc_stripe_charge_status]
    [yaymail_order_meta:_payment_method_token]
    [yaymail_order_meta:_wc_facebook_for_woocommerce_purchase_tracked]

    Do you have a list of all the plugins Yaymail is able to pull info from in the shortcodes? If we can add more regarding shipping info and your plugin can see this it would really help extend the power of the emails.

    Thanks!
    Glen Allan
    Director of Information Systems
    BASSBOSS

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author YayCommerce

    (@yaycommerce)

    Hi Glen,

    Currently YayMail support all order meta (Saved in wp_postmeta table, Screenshot). Yoy can see it from Shortcode menu or dropdown. Remember to select a real order have that order meta to display them https://tppr.me/qudc7

    Or you can display any order meta you want by use [yaymail_order_meta:YOUR-ORDER-META]. For example [yaymail_order_meta:_billing_your_age]

    I hope it helps,
    Tommy

    Thread Starter glenbassboss

    (@glenbassboss)

    Yeah it sort of helps… Basically i’m trying to find a way to embed a tracking number into any order that has shipped. I’m looking at different tracking plugins to see what works with Yaymail but was hoping you have already worked with one you already know can embed it’s meta info into the email.

    I guess i’ll keep installing them and see if anything shows up in the custom order meta area.

    Plugin Author YayCommerce

    (@yaycommerce)

    If the tracking number plugin saved in wp_postmeta, it should be work well.

    Or if you like any tracking number plugin, tell me and we will support it.

    Best regards,
    Tommy

    Thread Starter glenbassboss

    (@glenbassboss)

    Tommy,

    Nice! Will check on both accounts. You all are making a very nice email plugin!

    Glen

    Plugin Author YayCommerce

    (@yaycommerce)

    Thank you πŸ˜€

    We also have plan to do more premade templates for YayMail and more nice features πŸ˜‰

    Tommy

    Thread Starter glenbassboss

    (@glenbassboss)

    Hi Tommy,

    Just tried what i thought was and order_meta shortcode but got a null result. I’ll need to work with you on this. May open a ticket on the website to proceeed.

    Here’s what the code said: [yaymail_order_meta:_wc_shipment_tracking_items], but just came up null.

    Plugin Author YayCommerce

    (@yaycommerce)

    Hi Glen,

    Please make sure you select Sample to show is a real order, and that order have wc_shipment_tracking_items value. So you can see that shortcode work as well.

    Tommy

    Hi,
    I think I use the same order tracking plugin: Advanced Shipment Tracking for WooCommerce

    This plugin saves in postmeta table the meta_key: _wc_shipment_tracking_items, with for example meta_value: a:1:{i:0;a:5:{s:17:”tracking_provider”;s:12:”elta-courier”;s:15:”tracking_number”;s:11:”45698569825″;s:21:”tracking_product_code”;s:0:””;s:12:”date_shipped”;s:10:”1609891200″;s:11:”tracking_id”;s:32:”d7ce1ae38ba3f13fba168a308b4d18e9″;}}

    As you can see the data must be properly parshed in order to be useful by your plugin. So if you use [yaymail_order_meta:_wc_shipment_tracking_items] shortcode it returns null.

    At this plugin support section they mention that in order to works with other plugins they must support woocommerce hooks like: woocommerce_email_before_order_table, woocommerce_email_after_order_table etc.

    Can you add support for these hooks? I think this will solve the problem.

    Thank you.

    Thread Starter glenbassboss

    (@glenbassboss)

    Looks like i did repost the same question again. I had thought this one started off differently. You can delete the other and answering here would be fine. Or i’ll post the answer from here to that one.

    Yes @basile67, same plugin. Would be great to have this resolved!

    Thread Starter glenbassboss

    (@glenbassboss)

    @basile67, i just realized it isn’t the same plugin. Mine is the official “Shipment Tracking” plugin by WooCommerce.

    Oddly it does seem to use the same meta.

    Maybe they’ll get it working for both.

    Glen

    Plugin Author YayCommerce

    (@yaycommerce)

    Hi Glen,

    Yes. As I said in another topic, we support official Shipment Tracking plugin by WooCommerce.

    Tommy

    Plugin Author YayCommerce

    (@yaycommerce)

    Hi @basile67

    We will take a look at Advanced Shipment Tracking for WooCommerce plugin.

    And thanks for your suggestion about Hook element, we will research more about it.

    Tommy

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Custom Shortcodes’ is closed to new replies.