Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
due to delivery constraints, I need to get the zip code of a customer before he can add items to a cart. I think this can be done with theme modification and maybe a custom app.
I would need an additional modification in the checkout. This zip code needs to be set as delivery address. It should not be possible to change this during checkout. My question is if there is an option to achieve this with a non-shopify-plus plan. And if so, which options do I have?
Thanks for hints in advance!
After a day of research, my best idea is to build a public app and using Shopify Functions API to validate cart and checkout and a theme extension with a buy-button block, that checks the cart for an existing attribute (zip) and if not aquire that from the customer.
If anyone got a better idea I'd be happy to read 😉
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025