How can I adjust product page code for US customer localization?

Topic summary

A merchant wants to localize a product page info box message based on a visitor’s country. Currently, the box displays “Delivery costs starting from £2.95 depending on country” in GBP for everyone.

Requested change: show a US-specific message for US-based customers—“Delivery costs starting from $2.95 for US customers”—and keep the original GBP message for all non‑US visitors.

Context: The message is rendered via a custom Liquid snippet on the product page (Liquid is Shopify’s templating language). The poster mentions Shopify localization/country objects (built‑in variables that identify the visitor’s country) but needs help implementing the conditional logic.

Status/outcome: No solution provided yet; the thread seeks a code example using country detection to switch the message for US visitors while defaulting to the existing GBP text for others. The discussion remains open.

Summarized with AI on January 20. AI used: gpt-5.

Hi guys

I have the following custom liquid code on my product page that provides a small information box with a grey background:


Delivery costs starting from £2.95 depending on country 

At the moment, the message that is output is in British pounds (£). However, I would like the message to change for US based customers only. E.g.

“Delivery costs starting from $2.95 for US customers”.

If they are not a US customer then it will revert to the standard message. I know there are certain localization and country objects that can be used in code, but I’m not a coder, so any help would be much appreciated!

Kind regards

Tim