Developer notes
Overview · Installation · Configuration · Usage · Developer notes · FAQ
Technical reference for developers who customize FAQ & Help Center.
Add-on identity
Section titled “Add-on identity”| Item | Value |
|---|---|
| Add-on id | kv_faq_help_center |
| Function prefix | fn_kv_faq_help_center_ |
| Language variables | kv_faq_help_center.* |
| CSS scope | .kv-faq* |
| PHP namespace | Tygh\Addons\KvFaqHelpCenter |
| Dispatches (storefront) | kv_faq_help_center.view|category|question|search|suggest|vote |
| Dispatches (back office) | kv_faq_help_center.manage|update|categories|category_update|home|searches|report|import_export|export |
Hooks used
Section titled “Hooks used”| Hook | Use |
|---|---|
seo_is_indexed_page |
Help center, categories and questions are indexed; search results are noindex. |
delete_product_post, delete_category_post, delete_product_feature_variants_post, delete_company |
Remove links to deleted products, categories, feature values; a deleted vendor or storefront takes its questions. |
Template hooks: index:meta (FAQPage JSON-LD of the help center pages), index:styles, index:scripts, companies:view (post: the vendor FAQ), the product tab blocks/product_tabs/kv_faq.tpl.
Database tables
Section titled “Database tables”All created with CREATE TABLE IF NOT EXISTS, kept on uninstall unless Delete all data on uninstall is on.
| Table | Content |
|---|---|
?:kv_faq_categories, ?:kv_faq_category_descriptions |
FAQ category tree and the help center page (the row with is_root = 'Y', one per storefront on Ultimate); text per language. |
?:kv_faq_questions, ?:kv_faq_question_descriptions |
Questions (status A / D / P, position, popular, tags, owner company_id: vendor, storefront or 0) and text per language with an accent-folded search_text. |
?:kv_faq_links |
Where a question is shown: help, product, category, variant (feature value), vendor. |
?:kv_faq_votes, ?:kv_faq_vote_totals |
One vote per visitor (keyed hash) and the counters (not part of the page cache tags). |
?:kv_faq_search_log |
Searches without results: normalised text, counter, status. |
?:kv_faq_rate |
Short-lived rate-limit buckets. |
Classes
Section titled “Classes”Config (settings, licence gate, text helpers), Faq (data layer), Storefront (cached public view data), Access (back-office scoping), Votes, SearchLog, Highlight, Markup (JSON-LD), Csv, Seo, Support, ClientIp, License\Client, Upgrade\Synchronizer, Retention.
SEO names
Section titled “SEO names”The add-on registers two SEO object types in schemas/seo/objects.post.php: h (FAQ category and the help center page, dispatch kv_faq_help_center.category) and q (question, dispatch kv_faq_help_center.question). Without the core SEO add-on plain dispatch URLs are used.
Template overrides
Section titled “Template overrides”Storefront templates live in design/themes/<theme>/templates/addons/kv_faq_help_center/ (components/accordion.tpl, components/search_form.tpl, views/kv_faq_help_center/*.tpl, blocks/*.tpl). Copy a template to your own theme’s folder to change it; do not edit the add-on’s files, they are replaced on update.
Full page cache (4.21)
Section titled “Full page cache (4.21)”Storefront data is read through Registry::getOrSetCache with the add-on tables (and the catalog tables a context query joins) as conditions, so edits purge the cache tags of the pages that show them. No page contains visitor data; votes and suggestions are separate non-cacheable requests, and the vote dispatch is exempt from the form token check because cached pages cannot carry one.