Skip to content
← Back to Apps

Shopify app · Regional stores

Free Spirit

A single Shopify store with a different price for each city: whoever arrives from their city's ad sees, and pays, that city's price, with no duplicated store or inventory.

Goal

Launch regional versions of the store, each with its own prices and design, and manage them all from a single page hosted on Shopify, without duplicating the store or the inventory.

How it looks

In the app's admin

In the store

Free Spirit | Precios regionales
Regional prices admin with the variants table

Prices by city

The app's admin inside Shopify: pick the city, search a product or a SKU and see the national price next to the regional one, which you can edit on the spot.

Admin: screens of the real app with made-up data. Store: an example store ("Alba", with invented products and prices) running the extension's real script; the cart is a mock-up of the result. Free Spirit's own store and prices are not shown. The admin's interface is in Spanish.

What it does

  • City prices from Excel

    The catalog is exported, one column is filled in for each of the 10 cities and it is imported back. Before saving, a preview shows the errors first.

  • Imports that don't overwrite changes

    Up to 10,000 variants per city in the background, with a history. Each batch is checked against Shopify again before writing; if someone changed the price in the meantime, it is not overwritten.

  • National struck through, regional beside it

    On product pages, collections, search, predictive search, home and recommendations the national price shows struck through next to the city's.

  • The cart charges what you see

    A Shopify Function (Cart Transform) runs on Shopify's servers and sets each line's regional price at checkout; it does not depend on the shopper's browser.

  • Rules that protect the margin

    Products tagged SALE keep their offer, and if the regional price is missing or higher than the national one, the national price is charged. Whole Colombian pesos only.

  • Content by city

    Banners only some cities see, sections hidden in others and each city's own collections, which the site uses on its own when they are published.

  • Guide for the ads team

    A 6-page PDF that explains how to build the ads on Meta (catalog or manual link), with ready-made text for each city and a checklist.

  • Results by city

    The city is saved on every order and, with the ad's UTMs, one city's sales can be compared with another's.

How it works

  1. Step 1: The link picks the city

    Where the person is does not matter: what counts is the link they come in through, a city subdomain or the ?fs_campaign=cali parameter. It is kept for 7 days in the browser and on the cart.

  2. Step 2: The prices live in Shopify

    Each variant keeps a small JSON with each city's price in a metafield. The app writes it from the Excel; there is no other price database to maintain.

  3. Step 3: The store shows it

    A theme script reads the city and draws the national price struck through with the regional one. What loads after the page, like search, fetches the prices with public read-only access to the Storefront API.

  4. Step 4: The cart charges it

    At checkout, the cart function reads the city and each product's metafield and sets the unit price. If anything does not add up, the national price stays: it never charges more than the national one.

  5. Step 5: It is measured by city

    The city stays on the order and, with the ad's UTMs, you can see which city sells more.

Role

Development

Year

2026

Build time

25 hours

Tools

  • Claude Code
  • Shopify (Admin API, Storefront API, Functions)
  • Liquid
  • React Router
  • TypeScript
  • Prisma (SQLite)
  • ExcelJS
  • Fly.io