Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd like to have Rule run once the user has filled out the form and hits Review Order button. I don't see an event in Rules for this. Is this going to be added in the future?
Comments
Comment #1
longwaveWhat exactly do you want to achieve with this rule?
You can use the "Drupal is initialising" event and add a comparison condition on the "site:current-page" selector to run a Rules event on any arbitrary page, though you might not have access to the current order if you are looking to react or change that in any way.
Comment #2
aniebel CreditAttribution: aniebel commentedThanks longwave, I am using Extra Fields Checkout Pane (https://www.drupal.org/project/uc_extra_fields_pane) to add a co-member email and would like to check that the name doesn't already exist in users. I need to do this before beginning the checkout process to prompt the person buying a membership that their co-member already has an account. I was planning on running a rule to respond to this once the user presses the Review Order button.
Comment #3
longwaveIn which case you would need access to the order to compare the field (presuming that Extra Fields Checkout Pane actually makes the fields available via Rules), which means we would need to add a specific event, and I can see how this might be useful in a few other cases too.
Comment #4
aniebel CreditAttribution: aniebel commentedI'm planning on trying to build a module for this but I'm a novice developer so it may take me awhile to work it out. Will share what I come up with.
Comment #5
smd_ksu CreditAttribution: smd_ksu commentedWould also love a Review Order event in rules.
Comment #6
TR CreditAttribution: TR commentedComment #8
TR CreditAttribution: TR commentedI added this rules event and a corresponding hook_uc_cart_checkout_review_order() to Ubercart 8.x-4.x.
Comment #9
TR CreditAttribution: TR commentedAdded "Rules" component.