<{if $product->getAllowNegativeStock() or $product->getIsInStock()}> <{if $product->getExtensionValue('comment_attribute_id')}> <{assign var="comment_attribute_id" value=$product->getExtensionValue('comment_attribute_id')}> <{else}> <{assign var="comment_attribute_id" value='null'}> <{/if}> <{include file="components/add-to-cart.html" class="product-view__add-to-cart" show_variant="true" type="button" product_id=$product->getProductId() show_addons="true" show_quantity="true" show_badge="true" allow_backorder=$product->getAllowNegativeStock() stock=$product->getStockCount() comment_attribute_id=$comment_attribute_id show_customer_attributes="true" }> <{/if}> <{* e-mærket-widget lige under købsknappen. Ligger her og ikke i add-to-cart.html, fordi den fil også bruges af product-card.html — så ville widget'en blive gentaget på hver produktkasse i kategorilister med samme DOM-id. Uden for stock-if'en ovenfor, så mærket også vises på udsolgte varer. *}> <{if $settings.integrations.emaerket_widget_id_product}> <{include file="components/widget-emaerket.html" widget_id=$settings.integrations.emaerket_widget_id_product}> <{/if}> <{* Lagernotifikation — vises hvis hele produktet eller en variant er udsolgt *}> <{include file="components/back-in-stock-form.html"}> <{if $product->getSubscriptionInterval()}> <{assign var="profile" value=$product->getProfile()}> <{assign var="sub_attr" value=$profile->getAttributeList()}>

<{t}>Subscription<{/t}>: <{if $product->getSubscriptionInterval() == 'monthly'}><{t}>Monthly<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'weekly'}><{t}>Weekly<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'daily'}><{t}>Daily<{/t}><{/if}>

<{if $product->getSubscriptionPrice()}>

<{$product->getSubscriptionPrice()|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{if $settings.currency.show}><{$currency|escape}><{/if}> / <{if $product->getSubscriptionInterval() == 'monthly'}><{t}>month<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'weekly'}><{t}>week<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'daily'}><{t}>day<{/t}><{/if}>

<{/if}>
<{t}>Every<{/t}> <{if $product->getSubscriptionInterval() == 'monthly'}><{t}>month(s)<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'weekly'}><{t}>week(s)<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'daily'}><{t}>day(s)<{/t}><{/if}>
<{if $product->getSubscriptionFixation()}>

<{t}>Please note: this subscription has a commitment period of<{/t}> <{$product->getSubscriptionFixation()}> <{if $product->getSubscriptionInterval() == 'monthly'}><{t}>months<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'weekly'}><{t}>weeks<{/t}><{/if}> <{if $product->getSubscriptionInterval() == 'daily'}><{t}>days<{/t}><{/if}>.

<{/if}> <{section name="j" loop=$sub_attr}> <{if $sub_attr[j]->getIsVariant() && $sub_attr[j]->getDataType() == "valuelist"}>
<{assign var="sub_values" value=$sub_attr[j]->getValues($product)}>
<{/if}> <{/section}>
<{/if}>