Car Battery Pro
Technical Reference

Repository & theme structure

How the Car Battery Pro theme codebase is organised.

Repository & theme structure

🛠 Dev

The theme follows the standard Shopify theme layout. This page is a map; the authoritative conventions live in CLAUDE.md and AGENTS.md at the repo root.

Directory layout

assets/       Static CSS, JS, images. JS modules are classes on window.theme.*
blocks/       Nestable editor-customisable components (require {% schema %})
config/       settings_schema.json + settings_data.json (theme settings)
layout/       Top-level HTML wrappers (<head>, <body>)
locales/      Translation JSON files (en.default.json, *.schema.json)
sections/     Full-width editor-customisable modules (require {% schema %})
snippets/     Reusable Liquid fragments (require {% doc %})
templates/    JSON files defining page structure

Key root files

FilePurpose
CLAUDE.mdCoding conventions (Liquid, CSS/BEM, JS, translations). Read this first.
AGENTS.mdThe detailed contributor/agent guide.
DESIGN-GUIDELINES.mdThe design system and visual standards.
TRACKING.mdThe analytics / data-layer contract (reproduced under Tracking).
README.mdShopify CLI setup and deployment basics.
scripts/deploy.jsCustom deployment helper (see Deployment).
web-pixel.jsThe Shopify Web Pixel source for GTM (see Tracking).

Custom feature entry points

FeatureWhere to look
Vehicle lookupsections/rego-entry.liquid, assets/rego-entry.js, assets/vehicle-details.js
Battery compatibility UIassets/vehicle-suitability.js
Postcode / delivery zonessections/postcode-entry.liquid, assets/postcode-entry.js
Installation bookingsections/installation.liquid, assets/installation.js
API bootstrapsnippets/api-init.liquid, snippets/development-mode.liquid
Authassets/session-manager.js

See Custom JavaScript modules for what each module does.

On this page