<{$show_form_setting = $settings.product.show_back_in_stock_form|default:'product_oos'}> <{$has_oos_variant = false}> <{$profile = null}> <{if $show_form_setting != 'off' && $product->hasVariants()}> <{$profile = $product->getProfile()}> <{if $profile}> <{foreach $profile->getAttributeList() as $attr}> <{if $attr->getIsVariant() && $attr->getDataType() == 'valuelist'}> <{foreach $attr->getValues($product) as $val}> <{if $product->getInStock($attr->getAttributeId(), $val->getAttributeValueId()) <= 0}> <{$has_oos_variant = true}> <{/if}> <{/foreach}> <{/if}> <{/foreach}> <{/if}> <{/if}> <{$show_form = false}> <{if !$product->getAllowNegativeStock() && $show_form_setting != 'off'}> <{if !$product->getIsInStock()}> <{$show_form = true}> <{elseif $show_form_setting == 'variant_oos' && $has_oos_variant}> <{$show_form = true}> <{/if}> <{/if}> <{if $show_form}> <{if $get.out_of_stock_signup}>

<{t section="Product"}>Tak for det - du hører som den første fra os når varen er på lager igen!<{/t}>

<{else}>
<{t section="Product"}>Get notified when the product is back in stock:<{/t}> <{if $has_oos_variant}> <{/if}>
<{/if}> <{/if}>