Developer notes
| Item | Value |
|---|---|
| Add-on id | kv_theme_harbour |
| Theme | kv_harbour (child of responsive) |
| CSS prefix | hb- |
| Tables | ?:kv_hb_stays (product_id, company_id, lat, lng, area, checkin_time, checkout_time, cleaning_fee, rules, cancellation, sleeping), ?:kv_hb_charts (chart_id, company_id, name, south, west, north, east, image, position, status); kept on uninstall unless “Delete all stay data on uninstall” is on |
| Chart files | images/kv_harbour/charts/ |
| Admin | product tab kv_hb_stay (controllers/backend/products.post.php, saved in update_product_post), kv_harbour_maps.manage / update / delete |
| Storefront JSON | kv_harbour.cal, kv_harbour.quote, kv_harbour.stay (GET, no-store, rate limit per client network) |
Product data
Section titled “Product data”gather_additional_products_data_post adds $product.hb on the storefront (stays only): lat, lng, area, fee,
sleeps, bedrooms, beds, baths, type, unit (night / day / booking), range, min, rating (avg, n),
host (name, url, Multi-Vendor). The product page gets $hb_stay (Theme\Stays::stay), the vendor page $hb_host.
get_cart_product_data adds the cleaning fee once to a Bookings & Reservations night line (after the add-on priced it,
before catalog promotions). get_products reads hb_guests (minimum “Sleeps”).
Templates
Section titled “Templates”Block templates: blocks/categories/kv_hb_dock.tpl, kv_hb_tabs.tpl, kv_hb_links.tpl, kv_hb_map.tpl,
kv_hb_host.tpl, kv_hb_hosts.tpl, kv_hb_dests.tpl, blocks/products/kv_hb_split.tpl,
addons/banners/blocks/kv_hb_postcards.tpl. Card hooks: products:product_data post (price pin in the image labels),
products:list_price_block pre / post. Stay page: products:view_main_info pre / post, products:main_info_title
override (stays only), products:main_price post. index:html_tag pre adds data-hb-stay / data-hb-list.
Script
Section titled “Script”js/addons/kv_theme_harbour/theme.js (+ lib/leaflet.js, Leaflet 1.9.4, BSD-2-Clause): trip state (URL hb_in,
hb_out, hb_guests, localStorage “kv_hb_trip”), search dock, totals on cards and pins, maps, the stay calendar that
clicks the Bookings & Reservations picker cells (the add-on stays the source of truth), the logbook and the phone booking
bar. JSON answers are mirrored into #hb_cache for saved copies of the page.