How could i show shipping price in product page?

Topic summary

A user wants to display shipping costs (e.g., 2 EUR) on product pages that automatically adjust based on the customer’s currency and location. The shipping price should convert proportionally with currency changes and show “free shipping” for customers in the UK or US.

Current Issue:
The user attempted a solution using custom Liquid code with geolocation and currency detection, but it only changes the currency symbol without converting the actual numerical value.

Technical Context:
The code snippet involves:

  • Customer IP-based geolocation (request.client_ip | geolocate)
  • Currency detection from customer location
  • Liquid templating for dynamic display

The discussion remains open with no solutions provided yet. The user needs help implementing proper currency conversion logic that scales the shipping price value, not just the symbol, and conditionally displays free shipping based on geographic rules.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

I would like to show my shipping price, lets say 2EUR on my product page in a custom liquid block or an application. This 2EUR should be changing with the customers currency and scaling with it, also it should say free shipping if the customer is in UK or the US.

I have tried this code already, but it just changed the currency symbol and not the actual value of it:

{% comment %}
Get the customer’s location based on IP address
{% endcomment %}
{% assign customer_location = request.client_ip | geolocation %}

{% comment %}
Set the currency based on the detected location
{% endcomment %}
{% assign currency_code = customer_location.country.iso_code | downcase %}

{% comment %}
Display the price in the customer’s currency
{% endcomment %}
{{ 3.95 | money | append: ’ ’ | append: currency_code }}