Developer notes
| Item | Value |
|---|---|
| Add-on id | kv_theme_locale |
| Theme | kv_locale (child of responsive) |
| CSS prefix | lc- |
| Script | js/addons/kv_theme_locale/theme.js (loaded only while the licensed design is on) |
| Stock endpoint | index.php?dispatch=kv_locale.avail&ids=1,2,3 (GET, JSON, Cache-Control: no-store, max 60 ids) |
| Category filter | URL parameter lc_store=<store_location_id> (hook get_products) |
Data the templates get
Section titled “Data the templates get”$lc (assigned in dispatch_before_display, storefront): stores (normalized store list), count, json (the store list for the browser), stock (Warehouses active and allowed), pro (Store Locator Pro active), finder (finder URL), ready, low, transfer, filter_on, store_param.
Template hooks used
Section titled “Template hooks used”index:footer(post):#lc-config,#lc-storesJSON, the picker dialog.products:list_price_block(post): the card store line holder[data-lc-avail].products:product_detail_bottom(post): fulfilment tiles + route line.categories:view_description(post): the “Available at my store” switch.
Browser state
Section titled “Browser state”localStorage["lc.store"] (store id) and the cookie lc-store (180 days, SameSite=Lax), sessionStorage["lc.geo"] after Use my location. The script fires lc:store-changed on document when the visitor changes store.
Demo data
Section titled “Demo data”Theme\Seed adds the demo stores, stock per store, Store Locator Pro data and a Pickup method for products of the Locale demo pack (product codes KVDEMO-LOCALE-*) and records every row it created in var/kv_storage/kv_theme_locale/network.json; the uninstall removes exactly those rows.