Shopify Flow - Update Shop Metafield > Order Number Suffix

stevekem
Shopify Partner
7 0 1

Hello,

Maybe I don't understand how Shopify Flow works exactly but I am trying to add a random 2 digit number (that changes after every order) to:


Settings > Store details > Order ID > Suffix


I thought maybe I could use Shopify Flow and Utilize action "Update shop metafield" to add a random number to metafield {{shop.orderNumberFormatSuffix}}. When testing and the workflow runs, the value I set for "Update shop metafield" action is not applying to:


Settings > Store details > Order ID > Suffix


Is this possible? If not, any other built in or custom solutions possible? With API possibly?

Replies 4 (4)

paul_n
Shopify Staff
937 127 223

I don't think it's a good idea to change that suffix on every order, but I don't think it's possible by API anyway. 

 

Why are you trying to do that? 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
stevekem
Shopify Partner
7 0 1

Hi Paul,

I would be ok with changing it daily instead of after every order. Is this possible within Flow?  Do you know why the "Update shop metafield" action isn't working for this within Flow?

 

We need to be able to control our order numbers a little better so others cannot easily see our order volume.

 

I look forward to hearing from you soon. Thank you!

paul_n
Shopify Staff
937 127 223

Shop metafieds are custom fields that you define for you shop. They aren't a way to set other defined fields (like the prefix). 

 

I think there is a feature you can use instead called a confirmation number. It's a random number assigned to orders and can be used publicly instead of the order number. I'm not sure exactly the process but I think you might need to update an templates that show order number to show the confirmation number instead. You can also search orders by that number in the Admin. 

 

That's about how much I know. You might want to contact support if you need further help.

 

Here's it's shown in the timeline:

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Kalen_Jordan
Shopify Partner
446 15 62

I think confirmation number is the way to go as @paul_n said. Should be able to replace the order number with that in confirmation emails and other customer-facing templates.

Kalen Jordan
Platform Advocate
MESA - Shopify Automation You've Love