• Resolved mrab231a

    (@mrab231a)


    Hello,

    I’d like to know if there’s some possible way to use the shortcodes that are installed on my WordPress website inside the action when WordPress sends an email. I’ve tried and the shortcode is not working, instead of showing the dynamic data, it shows the shortcode code in the email. https://www.ads-software.com/plugins/wp-date-and-time-shortcode/ This is the plugin i need help with, what i want to do is use the shortcode generated by this plugin to print a date an time in the future for next saturday. This two are the shortcodes i’m using on my wordpress website (and working correctly):

    [wpdts-custom format="j" next="Sat" hours="-12"] [wpdts-custom format="M" next="Sat" hours="-12"]

    I’d really appreciate your help on this, please!

    Regards

    • This topic was modified 4 years, 5 months ago by mrab231a.
    • This topic was modified 4 years, 5 months ago by mrab231a.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mrab231a

    (@mrab231a)

    Also, i’ve tested to send the emails to myself and i’m getting two emails instead of one. They’re being duplicated.

    Is there any way to fix this as well, please?

    Thanks!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @mrab231a,

    That’s a good idea.

    Try downloading the file from https://we.tl/t-dc6Fubb4mF. Upload it by FTP and replace the current version at this location:
    wp-content/plugins/uncanny-automator/src/integrations/wp/actions/wp-sendemail.php

    That should allow you to include shortcodes in the email. We’ll add that to the next release.

    For the 2 emails, can you confirm what your triggers are? In the action and recipe logs, does it show the recipe and action firing twice?

    Thanks

    Thread Starter mrab231a

    (@mrab231a)

    Hello @uncannyowl

    Thank you so much for taking the time to read through the ticket and providing the piece of code that fixed the issue!!

    Regarding the duplicated emails:
    I’m using WooCommerce as the trigger with Anononymus users (not logged in), specifically ‘A product is purchased via guest checkout’. I can confirm that both the recipe and action are being triggered twice. Here’s an image example

    Basically what i want to do is just send an email after purchase by taking the email address from another field besides billing_email because i’ve modified quiet a lot the checkout fields at Woocommerce to fit some other needs i had.

    Looking forward to your reply!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @mrab231a ,

    Sorry about that, but since this one uses a Pro trigger, our developer has suggested you reach out via your account on our site for a possible code change related to Pro. We’re seeing a few possible reasons for your issue:

    – Because it’s an anonymous trigger, the number of times it can run is irrelevant; it won’t respect the setting.
    – That trigger will fire under several conditions, including order status being marked complete, payment being confirmed and a redirect to the thank you page.

    In your case it sounds like we need to isolate it to a single condition/trigger, so having you try a code change is probably the best approach.

    Would that work?

    Thread Starter mrab231a

    (@mrab231a)

    Hello @uncannyowl

    I downloaded the plugin from a forum where it was published, i did not know it had something to do with “Pro” features, i just started using it thinking that if it was there then it was also free.

    I’d love the code change but due to the circumstances i doubt your developer will be willing to help me any further. :/

    Thank you for your kind help!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @mrab231a ,

    Oh, we assumed you were using Pro because you mentioned “I’m using WooCommerce as the trigger with Anononymus users (not logged in)”. The free version cannot support recipes triggered by guest purchases in Woo. It will only work with the anonymous trigger in Pro. If you found that your recipe was working, it’s probably because users were signed in during purchase and weren’t actually guests. You should unfortunately assume that this recipe won’t be reliable for you; the free version requires that users be signed in to run recipes based on Woo purchases.

    If you can switch to logged in users only and disable Woo guest checkout (you should if you want to use the free version only), we will still plan to release some change around this in the next release to ensure the specific condition I mentioned (payment, order completion, thank you) will be isolated.

    Thread Starter mrab231a

    (@mrab231a)

    Hello @uncannyowl

    Is it possible to only force one action trigger per recipe with code? maybe something on my functions.php theme file? I mean, force the recipes to not send more than one time the actions setted on the recipe by overriding all other rules. I won’t be needing multiple emails as duplicateds anytime soon so maybe it can be somehow disabled? like prevent the duplicates by telling the code regardless of the settings only execute every action one time.

    I just really please need this to work, the plugin is perfect and only has this flaw which seems like a really dumb thing which could easly be prevented.

    Looking forward to your reply!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @mrab231a ,

    This isn’t a behaviour that should be overridden with other code. We’re planning a change in Automator, though I don’t know if it will be in this release or the next release of the free version that we address this. It’s likely you will see a related update this week though.

    Thread Starter mrab231a

    (@mrab231a)

    Hello @uncannyowl

    I do understand that, but in my situation its the only thing preventing me from actually using the plugin. If you could please provide me with the temporary code that would force the triggers to only run one time or to execute every action one time i’d really appreciate it. I know that it shouldn’t work this way for everybody but please understand that’s the only issue i’m facing right now with this awesome plugin!!

    I also know that you owe me nothing, i’m a user from your free version plugin. But in the future when i get sales i’ll consider upgrading because you seem like the good kind of people to have in your corner helping you develop a business.

    Thank you.

    Plugin Author Uncanny Owl

    (@uncannyowl)

    I’m afraid there is no temporary code, we have not settled on a solution that we think will work for all users, and between that and today being a holiday in Canada (so our staff aren’t working), we unfortunately won’t have updates until our team is back.

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Our team was reviewing this and noted that it seems like you are using a Pro version that didn’t come from us. What you’re using suggests Pro is somehow a factor, and then you mentioned that you downloaded it from a “forum”, so we think it potentially came from a source that was not legitimate. We cannot provide support in that scenario. Plugins should not be downloaded from third-party forums.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Use shortcode in action wordpress mail’ is closed to new replies.