How to add a dynamic duties and taxes message in Shopify using Liquid and market metafields
A Shopify duties and taxes included message helps international customers shop with confidence by clearly communicating that there won't be unexpected import fees at delivery. In this tutorial, you'll learn how to build a lightweight Shopify Liquid component that displays a market-specific notice using Shopify markets metafields. The Highstreet theme supports this feature natively, out of the box, without relying on third party apps.
Why every Shopify store should display duties and taxes information
Unexpected import charges are one of the biggest reasons customers abandon international purchases. Displaying a clear duties and taxes notice reassures shoppers that the final price they're paying is the final amount they'll be charged, helping build trust before they reach checkout.
Using Shopify markets allows this message to appear only where it's relevant. Instead of showing the same notice to every visitor, you can display it exclusively for markets where duties and taxes are included in the final price.
Step 1: Create a duties and taxes metafield
This component relies on a Shopify Market metafield to determine whether duties and taxes should be displayed for the current market. Rather than hardcoding the message into your theme, you can manage it directly from your Shopify admin for each market independently.
Create a market metafield using the following settings:
• Namespace: custom
• Key: duties_and_taxes_included
• Type: True or false
Once configured, simply enable the metafield for any market where duties and taxes are already included in your pricing.
Step 2: Read the market metafield with Shopify liquid
The component reads the current market's metafield using Shopify Liquid. Because the value is tied directly to Shopify markets, every visitor automatically receives the correct messaging based on their selected country or region.
This approach keeps all configuration inside Shopify rather than requiring multiple theme versions or complicated conditional logic throughout your templates.
If the metafield returns a value of true, the component displays the notice. If the value is false, nothing is rendered, keeping the storefront clean for markets where the message isn't applicable.
Step 3: Display the customer's country automatically
Rather than displaying a generic message, this component personalizes the notice by inserting the customer's current country using Shopify's localization object. The result is a message such as "Duties and taxes to Canada included in your final price," providing extra reassurance during the buying process.
Small personalization improvements like this can increase customer confidence while reducing questions about international shipping costs.
Step 4: Style the notification component
The component uses CSS custom properties for colors, spacing, borders, and layout, making it easy to match the rest of your Shopify storefront. Because the styling is self-contained, developers can adjust the appearance without affecting other sections of the theme.
The result is a lightweight notification that integrates naturally into your cart, checkout messaging, or product pages while maintaining fast page performance.
Why this approach is better than using an app
Many merchants install apps to display shipping notices or international pricing information. While these apps often provide additional features, they can also introduce unnecessary scripts, monthly costs, and maintenance overhead.
Using Shopify Liquid together with Shopify markets keeps the implementation lightweight, fast, and easy to maintain. Since all configuration lives inside Shopify, merchants can update market settings without editing theme code every time policies change.
Build better international Shopify stores with the Highstreet theme
Components like this are part of what makes Highstreet an excellent choice for merchants selling internationally. Highstreet includes practical, conversion-focused components that take advantage of Shopify markets and modern Shopify development practices, making it easier to build localized shopping experiences without depending on third-party apps.
If you're looking for a fast, flexible Shopify theme that includes production-ready components, clean Liquid architecture, and built-in support for international commerce, explore the Highstreet theme. It's designed to help Shopify stores create better shopping experiences while remaining easy to customize and maintain.
Duties and taxes to {{ localization.country.name }} included in your final price.