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!
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
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!
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?
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!
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.
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!
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.
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.
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.
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.