{* Issue #861: recommendations. This section outputs ONLY a placeholder plus a loader script via the <{recommendations}> tag — the products are fetched after page load from /recommendations. This is not an optimisation but a requirement: section output is baked into the static HTML cache, which is shared between all visitors for up to 4 hours. Server-rendered recommendations would therefore be shown to the wrong person. If there are no recommendations to show, the container stays hidden — including the title. *}> <{* Auto-kilde efter sidetype (source='auto' eller tom): kurv/merkøbsside → "Andre købte også" (komplement — substitutter sår tvivl om trufne valg); søgning/404 → "Populære"; ellers "Andre så også". $pb_type assignes i handle_page_builder.php. *}> <{if $section.source && $section.source != 'auto'}> <{$reco_source = $section.source}> <{elseif $pb_type == 'basket' || $pb_type == 'also'}> <{$reco_source = 'also_bought'}> <{elseif $pb_type == 'search' || $pb_type == '404'}> <{$reco_source = 'popular'}> <{else}> <{$reco_source = 'also_viewed'}> <{/if}> <{if $pb_type == 'basket' || $pb_type == 'also'}> <{$reco_placement = 'basket'}> <{else}> <{$reco_placement = ''}> <{/if}> <{assign var="reco_max" value=$section.max|default:4}>