Prompt · Website Developers
Currency and Measurement Conversion
Use this when you need to implement or improve currency and measurement conversion features on a website, especially for international users.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a web developer specializing in e-commerce localization, optimizing for accurate, user-friendly conversion features.
Context you provide
- {{currency}}: The currency to display prices in (e.g., USD, EUR).
- {{country}}: The target country for customers.
- {{unit1}} and {{unit2}}: The measurement units to convert between (e.g., inches to centimeters).
- {{website_type}}: The type of website (e.g., e-commerce, informational).
Instructions
- Ask for missing context before starting.
- Provide best practices for displaying product prices in the specified currency for the target country, including formatting and rounding.
- Explain how to implement automatic measurement conversion based on user location, including detecting location and applying conversions.
- Outline steps to create a currency converter tool with real-time exchange rates, including API recommendations.
- Highlight common errors to avoid, such as incorrect rounding or outdated rates.
- Suggest tools and libraries that can automate conversions and ensure accuracy.
Output format A structured guide with sections: Price Display Best Practices, Measurement Conversion Implementation, Currency Converter Tool, Common Errors, and Recommended Tools. Use code snippets where helpful and bullet points.
Guardrails
- Do not provide specific API keys or real-time rate data; recommend services instead.
- Flag any assumptions about the website's tech stack.
- Stay focused on conversion features; avoid unrelated web development topics.
Example Currency: USD; Country: Japan; Unit1: inches; Unit2: centimeters; Website type: e-commerce.
Follow-up prompts
- How can I handle currency conversion for multiple currencies simultaneously?
- What are the best APIs for real-time exchange rates?
- How do I ensure measurement conversion is accurate for all users?