Hi,
I’m looking for a solution to automatically format a client’s zip code (post code) after they enter it. For example, if a client enters the zip code with a country code, a space between the country code and zip code, or even a dash, the app should format the zip code by removing these extra symbols.
For instance, if the customer input is “LT-51614,” the app should format it to “LT51614.”
Any suggestions? Thanks in advance!
Hi @Karolis3 ,
To validate and format zip codes / postal codes the best way is to use Checkout Validation Functions:
https://shopify.dev/docs/apps/build/checkout/cart-checkout-validation/create-server-side-validation
Hi,
Is it possible to code using Basic Shopify plan? Thanks.
You can code using any Shopify plan. But if you are not too into that, you could try Ultimate Checkout Rules. You validate zip and postal codes and add other checkout rules for your checkout using the AI assistant.