Modifying Shopify Order ID Structure Dynamically?

I’m comfortable with coding and want to modify the order ID format to something like:

BBSH-250307-TS-0321

  • BBSH (Business Shopify) → Platform/Brand
  • 250307 (YYMMDD) → Order date (dynamic)
  • TS (T-shirt) → Product category (dynamic)
  • 0321 (Generated Order Number) → Unique identifier (comes from Shopify, cannot be modified)

I know about the static prefix/suffix options in Admin settings, but I need a dynamic solution that applies the date and product category before checkout so the customer sees it.

I’ve heard this might only reflect on the customer’s end since the order number format is fixed in Admin.

I also heard you can add it into metafield and have it show up in order details, but this is not what I want

Has anyone successfully modified Shopify order numbers this way? Any insights would be appreciated!

I wouldn’t recommend trying to cram all that information into the order name, especially as that’s what customers see.

You’ve got lots of options here for custom data on orders.
You could use tags, custom attributes either on the order or each line item, notes, metafields.
All of which are easily available via API and webhooks and visible in the order page in Shopify or can be added to customer notifications