-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable order Id pattern (OCC-104) #214
Comments
I'm not sure how customizable it should be. A simple solution could be to create a site setting, where you can switch between predefined ID styles (like GUID and the thing you suggested). |
This is something more advanced than the other suggestion Dávid had about having the Content Id as the Order Id. |
We could create multiple order ID generator providers. Then add a content type setting for Order where you can select which ID generator to use, and optionally to provide a I think we won't need this much until we start implementing some kind of invoicing support. |
Yeah, that was my idea too, to have multiple providers etc... But for now I would like to have the settings for Content Id over GUID, if that's okay. |
Where do you actually need that? I figured it's only used in the email and Order display page so you can just use ContentItem.Id from liquid. |
It's needed for the webshop admins/cashiers/whatever to identify an order by a customer call or contact or whatever. It's not so simple with that generated long Id. As you usually do when you order something and you want to pick it up at the store, you usually tell the cashiers an X digit number and with that they identify your order. |
Same requirement as @wAsnk mentioned: an orderid that is easier to read/recognize, e.g. just an incremented number starting from a predefined value. |
Is your feature request related to a problem? Please describe
While I see the point of using GUID as the order ID for being it unique, it loses the essential for easy identification during user <-> webshop owner communication because it is too random and long, mostly not humanly readable.
Describe the solution you'd like
Some sort of customization for order ID. There could be a template (pattern) that would be followed by the ID generator. E.g. date, time, random number within X digits. Really good example.
Jira issue
The text was updated successfully, but these errors were encountered: