Skip to content

Developer notes

Item Value
Add-on id kv_theme_kudos
Theme kv_kudos (child of responsive), installed from var/themes_repository/kv_kudos
Built with Kavio theme kit 1.2.8 (kv-files.json lists every file with its hash and the kit version), module flagship
CSS prefix ku- (theme), kv- / kv-fs- (kit)

Review data (Tygh\Addons\KvThemeKudos\Theme\Proof)

Section titled “Review data (Tygh\Addons\KvThemeKudos\Theme\Proof)”

Registered as static hook handlers (storefront only, only while the licensed Kudos design is on and Product Reviews is active):

Hook Adds
gather_additional_products_data_post $product.kv_ku_snip (text, rating, name, initials, tint 1-4, buyer)
get_product_data_post (products.view) $product.kv_ku_stats (total, average, positive %, rows 5..1 with count and %), $product.kv_ku_helpful (positive / critical)
dispatch_before_display $ku_proof (count, average, positive %, products, rows) and $ku_wall (9 newest reviews)

Queries read ?:product_reviews with status = 'A' and the core storefront rule (fn_product_reviews_get_storefront_id_by_setting()); store-wide numbers count only products a guest may see. Results are cached with Registry::registerCache() (tags: product_reviews, products, …). Output never depends on the visitor, so pages stay safe for the 4.21 full page cache.

  • css/kit/*.less (kit layer and modules), css/skin/skin.less (Kudos), styles/data/{Applause,Clover,Terracotta,Bluebell,Fig,Toffee,Encore,Cinder}.less.
  • blocks/static_templates/kv_ku_wall.tpl, kv_ku_proof.tpl, kv_ku_helpful.tpl; blocks/products/kv_ku_rated.tpl (stock products_multicolumns.tpl with the rated products only).
  • addons/kv_theme_kudos/hooks/products/list_price_block.post.tpl (card snippet, countdown, seller line), main_info_title.post.tpl (rating card), addons/kv_theme_kudos/partials/kv_ku_stars.tpl (star meter).

Use a child theme or the Theme editor’s custom CSS. Design tokens are LESS variables set by each scheme file: @ku_star (stars, quote marks, bars), @ku_quote, @ku_bubble_bg/_text/_muted (snippets, rating card), @ku_av1..4_bg/_text (avatars), @ku_proof_bg/_text/_accent (proof bar), @ku_wall_bg (review wall).