Re: Missing number in address

Solved

Can we halt fulfillment for addresses lacking house numbers?

DennisSt
Shopify Partner
8 0 3

is it possible to check if there are any numbers present in the address field?

i tried with regex ( /[^0-9]/g ) but it does not work. (it only puts it in superscript)

Any other possibility to hold back fulfillment for missing house numbers?

Screenshot 2022-12-12 120730.png

Accepted Solution (1)

paul_n
Shopify Staff
1584 171 365

This is an accepted solution.

Regex is not supported currently. You could check if the address includes each number. It's obviously quite a bit more manual to set up 10 conditions but it should work.

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.

View solution in original post

Replies 6 (6)

DennisSt
Shopify Partner
8 0 3

Screenshot 2022-12-12 120730.png

paul_n
Shopify Staff
1584 171 365

This is an accepted solution.

Regex is not supported currently. You could check if the address includes each number. It's obviously quite a bit more manual to set up 10 conditions but it should work.

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.
DennisSt
Shopify Partner
8 0 3

but i did not think of it, yet. thanks for the hint

FrederikstubbeØ
Shopify Partner
1 0 0

This is still not working for me, is their any other way to do it? 

paul_n
Shopify Staff
1584 171 365

Flow now as a Run code action. You can use whatever you need in that action to parse an address

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.
DeveshaSolution
Shopify Partner
10 0 0

Hello @FrederikstubbeØ 

Yes, it is possible to check if there are any numbers present in the address field or not, Checkout Address Validify provides a simple solution:

Our app allows you to validate fields such as First Name, Last Name, Address Line 1 and 2, City, Zip Code, Phone, and more. You can customize validation rules, including:

  • Blocking Non-Latin Characters
  • Missing House Number
  • Preventing PO Box Addresses
  • Field Minimum/Maximum Length Checker
  • Keyword and Regular Expression (Regex) Matching
  • Blocking Extra White Spaces
  • Blocking Numbers

Additionally, you can apply these validations at the cart level, block specific zip codes, and apply rules without needing a Shopify Plus plan. Address Validify integrates seamlessly without checkout.liquid file modifications—just install the app, configure your validation rules, and it will handle everything.

This should help prevent issues with shipping labels containing non-Latin characters, offering a streamlined solution.