I have created a new custom metafield for the price at the product level. I need to change the product price if the customer’s address matches the value stored in the custom metafield.
Topic summary
Goal: Change product price when a customer’s address matches a value stored in a product-level custom metafield.
Recommended approaches:
- Shopify Functions to implement customer segment–based pricing; suitable if comfortable with coding and allows custom server-side pricing logic.
- Third‑party app option: Dynamic Pricing Optimization for a no‑code way to set pricing rules by location/segment.
- Resource: Shopify blog on dynamic pricing (types and how to implement) for strategy and setup guidance.
Scope and limitations:
- The response doesn’t provide code, step-by-step instructions, or confirm metafield-to-address matching mechanics; it points to tools and learning resources instead.
- No images or attachments are central to the discussion.
Status and next steps:
- Unresolved/ongoing. Choose between building with Functions or installing an app; review the blog for best practices and follow up with specific implementation questions if needed.
Hey, @SahilP .
Thank you for reaching out and posting this question!
If you’re a developer, then you can use Shopify Functions to create segment pricing for customers. However, if you’re not comfortable working with coding languages, then you can also use a third-party - like Dynamic Pricing Optimization. If you’d like to learn more about dynamic pricing, then we’ve also got a blog on that here: Dynamic Pricing: 5 Types and How To Implement.
If you have any other questions on this topic, then don’t hesitate to let us know.