Developer notes
| Item | Value |
|---|---|
| Add-on id | kv_theme_relay |
| Theme | kv_relay (child of responsive) |
| CSS prefix | rl- |
| Tables | ?:kv_rl_models (trade-in models), ?:kv_rl_quotes (quotes) |
| Storefront dispatches | kv_relay.trade_in (page), kv_relay.quote (POST, no-store JSON) |
| Admin dispatches | kv_relay_quotes.manage, .update, .models, .save_models, .delete, .m_delete |
| Product data | $product.kv_rl = g (a-d), grade, gdesc, bat, war, new, save, pct, sib[], rate (MV) |
| Template data | $rl = promise, scale, tradein, models, top, chips, brands, sellers, page_url, quote_url |
- Product data is added in the hook
gather_additional_products_data_post(one query per list for feature values, one for sibling grades); catalog promotions are applied to sibling prices with the corefn_promotion_apply. - Theme templates: card hooks
products:list_price_block(pre/post), product hooksproducts:main_info_title.post,products:main_price.post; blocksblocks/categories/kv_rl_*.tplandaddons/banners/blocks/kv_rl_deals.tpl. - Settings / trade-in / seller / condition blocks render without the block cache; the chips block cache follows products, prices and categories and is kept per currency.
- Full page cache: no visitor data in HTML. The trade-in JSON is a page-wide data attribute (
#rl_ti_data). - Rate limit:
ClientIp::rateKey()(Cloudflare ranges / trusted proxies, IPv6 /64), 8 quotes per 10 minutes.