Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Order Approval

Hi everyone,
I've seen several posts on implementing an Order:Awaiting Approval state in the checkout process, but I haven't found any solutions yet. I'm trying to do this by using rules, but I can't figure out a logic that works.

What I'd like to be able to do is have an anonymous user submit an order request (in this case it is a request for a tour on a specific date). After filling out the customer information, but before going to the payment process, the user should be redirected to a "your oder is being reviewed" page. When the admin approves the order, the customer receives an email with a link that allows them to pay for the tour.

I've tried the suggestion in http://stackoverflow.com/questions/8164471/payment-after-ordering-differ..., but the rule that changes the order status to "awaiting approval" hangs in redirects.

*Edit: Specifically, this rule hangs (or sends to an error page):
Create a Rule to inject our new status:
Event: Before Order is being saved
Condition: Compare data, unchanged order status is Shopping Cart
Condition: Compare data, updated order status is Checkout
Action: Set the order status to Awaiting Approval

The error in my logs is Notice: Undefined index: checkout_page in commerce_checkout_order_uri() (line 823 of /homepages/40/d120381516/htdocs/sites/all/modules/commerce/modules/checkout/commerce_checkout.module).

Any thoughts, or methods that might work well? I this this is a common use scenario for tour operators' websites.

Thanks in advance!

Asked by: Abenezer
on January 7, 2013

Comments

This looks similar to your post here. Make sure to check there for more info in the answer I posted.

Before you get into the details of building your Rules, you'll need to decide the general approach you want to take regarding the asynchronous payment process. Since you need to gather some data on customers to determine their eligibility for a tour, you're probably best having them go through the user account creation process. You could have them fill out the 'Approval' form anonymously and then direct them to create an account, and pay for the tour only after they've been approved (which will essentially get rid of the payment being asynchronous). Trying to link up anonymous users with orders, and payment gateways is going to be a pain.

- michfuer on May 14, 2013

same problem, however i get the following error message and a redirect loop error when trying to access the checkout page.

Notice: Undefined index: checkout_page in commerce_checkout_page_access()

- James Cameron on July 3, 2014

1 Answer

Vote up!
0
Vote down!

I am having the same need and problem! Any solutions yet?

Answer by: Reuben Lara
Posted: Jun 5, 2014

Comments