Right now the order add page is the same as the order edit page.

Instead, we should create an order/add page which lets you select the order type, store, user/mail, and later language.
This form will save an order, then redirect to its edit page.
Thus the full order form always has access to the order id and uid, which makes it easy to calculate adjustments by calling external services, as well as write a widget to reuse customer profiles.

The 'type' and 'store' elements should be of type 'entity_select' so that they are hidden when there's only one option.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

vasike’s picture

Status: Active » Needs review
FileSize
3.14 KB

there is a patch for this

Questions:
- Some help text for the form
- Validation needed?
- Message on submit?
- Language, is this something for the future?

rszrama’s picture

Can we get a screenshot for easier review?

mglaman’s picture

Issue summary: View changes
FileSize
482.06 KB
103.83 KB

With patch:

Without patch:

This patches removes the need for https://www.drupal.org/project/commerce_admin_order_advanced to be ported.

I give my thumbs up.

rszrama’s picture

Cool, we're getting there. I don't think "Authoring information" really fits the fieldset title given orders aren't content that users author. Commerce 1.x uses "User information", which is better than "Author" but could still use some improvement. On the intermediate page, though, I feel like we can make it feel more like a wizard - i.e. think of it less as just filling out part of the full form and more as guiding the administrator through the first step of order creation - selecting an existing user, creating a new one, or creating an unassociated order.

We actually did this well in Ubercart, but I'd love to see some other systems' implementations and / or rough out some ideas based on our entities.

bojanz’s picture

FileSize
37.61 KB
78.26 KB

The bigcommerce UX is easy to imitate. I'd hide the password fields behind an "Autogenerate password" checkbox though.

ndf’s picture

Bigcommerce workflow/ux looks impressive to me.
Would be great if we can achieve that.

mglaman’s picture

To add on #7, we should maybe add the required profile, too? This is what Shopify has. It uses a modal, but I like the idea of creating the order first through the steps in #7.

mglaman’s picture

Status: Needs review » Needs work

Marking as needs work, since we want to change some labels and enhance user selection/creation.

vasike’s picture

Status: Needs work » Needs review
FileSize
5.01 KB

Patch updated (following #7 UX suggestions):
- Change the "Authoring information" with ""Customer information"
- Add new radios for Existing & Anonymous user and use Ajax to change the form according with selection
- Use the User search autocomplete (without anonymous) only for Existing, the user email it will be used for the order
- Use email form element for Anonymous user selection.

ToDo
- New user option.
- Customer data (address)
- Others.

mglaman’s picture

mglaman’s picture

Attaching some slick gifs demonstrating usage.

One store, one bundle

Multiple stores, multiple bundles.

  • bojanz committed c8818e6 on 8.x-2.x authored by mglaman
    Issue #2618136 by vasike, mglaman, bojanz, rszrama: Create a custom...
bojanz’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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