Uncanny Automator
Forum Replies Created
-
Hi @alexandronalin , thanks so much for the kind review! We’re glad Uncanny Automator has been useful to you.
Hi @sanaconeltantra ,
This one’s probably at a point where following up may be better on our website (so our developers can reply directly), but one of our developers suggested the following sample code snippet you could use to modify frform ID and publishing triggers/actions as well as the recipe:
function change_frform_id( $recipe_id ) { $form = Forminator_API::get_form( 123 ); // 123 if form ID $form_name = isset( $form->settings ) && isset( $form->settings['form_name'] ) ? $form->settings['form_name'] : $form->name; $recipe_data = Automator()->get_recipe_data_by_recipe_id( $recipe_id ); $triggers = $recipe_data['triggers']; if ( $triggers ) { foreach ( $triggers as $trigger ) { $trigger_id = $trigger['ID']; if ( ! empty( get_post_meta( $trigger_id, 'FRFORM', true ) ) ) { update_post_meta( $trigger_id, 'FRFORM', 123 ); update_post_meta( $trigger_id, 'FRFORM_readable', $form_name ); } } } } function change_recipe_to_live( $recipe_id ) { $recipe_data = Automator()->get_recipe_data_by_recipe_id( $recipe_id ); $triggers = $recipe_data['triggers']; if ( $triggers ) { foreach ( $triggers as $trigger ) { $trigger_id = $trigger['ID']; wp_publish_post( $trigger_id ); } } $actions = $recipe_data['actions']; if ( $actions ) { foreach ( $actions as $action ) { $action_id = $action['ID']; wp_publish_post( $action_id ); } } wp_publish_post( $recipe_id ); }
Argh, yes, we’ve seen a few plugins try to load their libraries on pages that aren’t theirs. This sounds like another select2 conflict. Other plugins should fix their code so they don’t load their libraries everywhere, but in some cases we may need to provide some code the de-enqueue their libraries on our pages.
Hi @alexandronalin ,
Sorry to hear about the issue.
Can you try right-clicking the page, choose Inspect, then look in the Console tab for any errors when the search box is looping? A screenshot would be helpful so we have more context about where it’s freezing.
Maybe you can check the site error/debug log too for any related issues, or send us a copy so we can look for problems there. The System Report under Automator > Tools in /wp-admin/ would be helpful too, but since there may be sensitive information it would be better to send us a copy via [email protected] or on our website.
Finally, during your test with plugins disabled, did you switch to a different theme temporarily to rule out a theme conflict as well?
And you mention “WordPress form”. Can you confirm what you mean by that? WPForms?
Thanks!
Hi @bitz98 , sorry to hear about the issue. It’s not one we’ve seen before and we would definitely like to understand what happened.
With only Automator active (not Pro), please navigate to Automator > Tools in /wp-admin/ and send a copy of the system report to [email protected] or through your account on our website. The report may have details about your site that shouldn’t be public so the Help Desk contact is preferred rather than posting the details here. Also let us know what version of Pro you’re using.
We’re wondering if you’re running a WooCommerce Admin plugin, and it also may be related to your PHP version and potentially an old version of one of our plugins. The system report will help us better assess that.
Thanks
Hi @sanaconeltantra , I ran it by our dev team and they said you could use this code example in your plugin or the child theme’s functions.php file to copy a recipe:
-- add_action( 'init', function () { if ( ! defined( 'UA_ABSPATH' ) ) { return; } if ( ! class_exists( '\Uncanny_Automator\Copy_Recipe_Parts' ) ) { require_once UA_ABSPATH . 'src/core/admin/class-copy-recipe-parts.php'; } $copy = new \Uncanny_Automator\Copy_Recipe_Parts(); $copy->copy_this_recipe( 7509 ); }, 1234 );
We hope that helps!
Thanks @mo7se7 !
I sent a reply to the Hep Desk ticket you opened with more details (it’s coming soon) so I’ll go ahead and close this out.
Hi @sanaconeltantra ,
It sounds like instead of using our UI to duplicate a recipe, you want to do it with code in another plugin. I checked with our dev team and they said this would be difficult right now and not something we could support. We’ll consider how we might make these easier for other developers, but for now, unfortunately, this effectively wouldn’t be possible.
We have captured your feedback, so I’ll close this request for now, and we’ll see if we can do anything here in a future release.
Hi @mo7se7 , thanks for the request!
Can you tell us more about sample use cases though and triggers and actions you might want to see?
Hi @thangdv86,
Sorry to see that you are having issues with Automator. Automator lists several of the core WooCommerce Order / Product meta by default. It will be tough to support all the variations of the fields across thousands of sites. However, most of these custom fields store the data as an order meta. You can try our Advanced -> Post meta token, where you can add the Order ID token as the post ID and the custom field name/slug in the meta key field. Technically it should parse the custom field value of the order when the recipe runs.
I hope this helps. In case it doesn’t work for you, please feel free to reach out to our support at [email protected] with more details related to your specific situation.
– S
Thanks @marymhughes !
For anyone else reading this, we will plan to add more descriptive messaging about what’s happening in this situation. Common reasons for a “site_inactive” error might include insufficient credits in the free version, cloning a site and not authorizing the new domain, a long-expired Pro license or an invalid license key in the Pro version.
Hi @futureyoon ,
Good memory! We removed the colours you’re referencing about 6 months ago due to some changes that affected the use of colour here. We appreciate your feedback though and we will consider bringing those identifiers back (and more) in a future release.
We have captured your feedback and we’ll see what we can do.
Hi @futureyoon , I can confirm that it’s being considered for an upcoming release. We had a similar request here: https://www.ads-software.com/support/topic/integration-with-jet-engine-custom-posts-type/#post-15137614.
I have added your vote to the request and we’ll see what we can do. I’ll go ahead and close this for now since your request has been captured by our team.
Hi @marymhughes ,
Sorry to hear about the issue. Let’s see if we can help to figure out what happened.
Can you send us a screenshot of the edit recipe page with all details expanded?
Can you also send us the recipe log details so we can see the results of the failure?
For all of the above, it may be helpful if you submit a ticket on our website or send an email to [email protected]. Since this is for Google Sheets we can check the API log for errors, but we would need to know your domain for this and that’s probably better to share privately via a ticket.
Thanks
Thanks @osiak , we really appreciate the review! I’m glad we were able to help.