<{* Post-purchase upsell on the thank-you page (Delaware). $upsell_products (array of SafeProduct) is set in thanks.php and is already filtered server-side (getUpsellProducts excludes the just-purchased products + bundles). One single
(no nested forms): buy_single = one product, buy_selected = several. Variant products show an inline variant picker; bundles are never suggested. *}> <{if $upsell_products && $upsell_order_id}>
data-upsell-countdown="<{$settings.checkout_upsell.countdown_minutes}>"<{/if}>>

<{if $settings.checkout_upsell.title}><{$settings.checkout_upsell.title|escape}><{else}><{t}>Did you forget something?<{/t}><{/if}>

<{if $settings.checkout_upsell.intro || $upsell_free_shipping}>

<{if $settings.checkout_upsell.intro}><{$settings.checkout_upsell.intro|escape}> <{/if}><{if $upsell_free_shipping}><{t}>Free shipping on what you add here.<{/t}><{/if}>

<{/if}> <{if $settings.checkout_upsell.enable_countdown && $settings.checkout_upsell.countdown_minutes}>

<{/if}>
<{foreach from=$upsell_products item=p}> <{if !$p->hasBundleProducts()}>
<{include file="components/product-card.html" product=$p show_add_to_cart="false"}>
<{if $p->hasVariants()}> <{$prof = $p->getProfile()}> <{if $prof}> <{foreach from=$prof->getAttributeList() item=attr}> <{if $attr->getIsVariant() && $attr->getDataType() == "valuelist"}> <{/if}> <{/foreach}> <{/if}> <{else}> <{/if}> <{* Discreet terms acceptance per product (gates this product's buy button) *}>
<{* Multi-select til "Buy selected" (ikke et billed-overlay — undgår kollision med favorit/badge) *}>
<{/if}> <{/foreach}>
<{/if}>