An admin can create orders for users and set status checkout then give user the url mysite.com/checkout/304 for order 304.

If more than one order exists in checkout then mysite.com/checkout does pick up that last order.

What would be really great that the order tab for the user show orders created for that user with a button to proceed to checkout or if not on the order list after the customer clicks for details on the order then have a button for checkout.

So for example a site that has user login to make a payment for services would have a navigation menu like ORDERS/INVOICES
that would go to path user/[current-user:uid]/orders (requires menu_token module for that to be in menu)

And that would make it easy for customers to see the bills to be paid and status... but something else to note is that by default the orders tab for user does not show orders in checkout I think.

Comments

rszrama’s picture

Status: Active » Closed (works as designed)

Yeah, by default that View does not show orders in checkout. However, because it's a View, you can easily modify it to include them. Even better, you can use Views to include a checkout link, so there isn't really anything to do from a code standpoint. : )

You'd do something like add an additional Order ID field to the View and in its rewrite settings choose to display the field as a link. Here you should be able to specify a title (Submit payment or whatever) and use a token to send the customer to checkout/[order-id].

webengr’s picture

views are so powerful ... but not intuitive for those who don't use often ..

For others here is an example of what Ryan was saying in detail
(correct if wrong please)

To get all orders to show for the "Orders" tab for user
As administrator hover over the hidden gear on the upper right to edit the view
( or views ui, and edit or clone /user/%/orders view)
Change "FILTER CRITERA" "Commerce Order: Order state (in Canceled, ...)"
to check mark is operator "Is one of" and selected "Select All" for STATE.

To add another column to the right of "Order Status"
Per Ryans suggestion one way is in the view under FIELDs click add and add
a field of type "Global custom text" can leave label blank, maybe in text have
"Checkout" and expand Rewrite Rules, check "Output this field as a link "
and the link path is " checkout/[order_number] "
( I don't think absolute path needs checked ).

This does work... BUT it shows the text like "make payment" beside all the orders even if
completed. This will be okay for now, because if status is completed the make payment
should just come up with a "404" page.
Not sure how to have the global custom text field not show if order is not status checkout:checkout ?

Would also like to put a checkout or "make payment" on the page for the order if user clicks on order number.
But the view edit gear on that page is for the line item of an order, and that would but make payment on every line item. Also by default the order page with more information for user does not show up for checkout:checkout status either. So editing the line item view here does not adjust criteria for order showing as I understand.
For now a page like ......./user/1/orders/1009 will not be found if it is in checkout:checkout status, and the views listed in the views ui do not seem to apply here. Is this an order_ui_order_view that is hard in the module? Likely I a missing something....

This thread is really more of a support request, apologies, but hopefully others will benefit.
I may should add some child pages to the user guide about setting up a drupal commerce to be for invoicing only. ( and maybe a preload flavor for users needing this....may evolve in the future...)