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

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

What 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.

aniebel’s picture

Thanks 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.

longwave’s picture

Title: Review Order as a Rules Event? » Review Order as a Rules Event
Version: 7.x-3.7 » 7.x-3.x-dev
Status: Postponed (maintainer needs more info) » Active

In 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.

aniebel’s picture

I'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.

smd_ksu’s picture

Would also love a Review Order event in rules.

TR’s picture

Version: 7.x-3.x-dev » 8.x-4.x-dev

  • TR committed 7f443c9 on 8.x-4.x
    Issue #2347105 by TR: Added a Review Order Rules Event.
    
TR’s picture

Status: Active » Fixed

I added this rules event and a corresponding hook_uc_cart_checkout_review_order() to Ubercart 8.x-4.x.

TR’s picture

Component: Cart/checkout » Rules

Added "Rules" component.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.