<{if $attributes}>
<{foreach from=$attributes item=a}>
-
<{$a.name|escape}>: <{if $a.data_type == "boolean"}><{if $a.value == "1"}><{t}>Ja<{/t}><{else}><{t}>Nej<{/t}><{/if}><{else}><{$a.value|escape}><{/if}><{if $a.unit}> <{$a.unit|escape}><{/if}>
<{/foreach}>
<{/if}>
<{if $product->hasBundleProducts()}>
<{assign var="bundleItems" value=$product->getBundleProductsCount()}>
<{foreach $bundleItems as $bundleItem}>
<{assign var="bundleProduct" value=$bundleItem.product}>
<{assign var="bp_id" value=$bundleProduct->getProductId()}>
-
<{$bundleItem.count}> × <{$bundleProduct->getName()|escape}><{if $basket[i].bundle.$bp_id}> (<{$basket[i].bundle.$bp_id.val|escape}>)<{/if}>
<{/foreach}>
<{/if}>
<{if $campaign_matches && in_array($product->getProductId(), $campaign_matches)}>
<{assign var="campaignArr" value=$product->getCampaigns()}>
<{if $campaignArr}>
<{include file="components/campaign-alert.html" variant="campaign" margin="b" size="sm" icon="information" text="Kampagnerabat"|t campaignArr=$campaignArr}>
<{/if}>
<{/if}>
<{if $isVariant && $amount > $attribute_stock_count && !$product->getAllowNegativeStock()}>
<{capture name="alert"}>
<{t x=$attribute_stock_count}>Vi har kun
{x} tilbage af denne variant.<{/t}>
<{/capture}>
<{include file="components/alert.html" variant="error" size="sm" text=$smarty.capture.alert}>
<{elseif $amount > $product->getStockCount() && !$product->getAllowNegativeStock()}>
<{capture name="alert"}>
<{t x=$product->getStockCount()}>Vi har kun
{x} tilbage på lager.<{/t}>
<{/capture}>
<{include file="components/alert.html" variant="error" size="sm" text=$smarty.capture.alert}>
<{/if}>
<{if $attribute_stock_count }>
<{assign var="stock_count" value=$attribute_stock_count}>
<{else}>
<{assign var="stock_count" value=$product->getStockCount()}>
<{/if}>
<{include
file="components/update-cart-item.html"
class="product-card-list__update-cart"
quantity=$amount
product_id=$product->getProductId()
package_size=$product->getPackage()
allow_backorder=$product->getAllowNegativeStock()
stock=$stock_count
}>
<{include file="components/price.html"
class="product-card-list__price"
product=$product show_price_total="true"
show_price_per_unit="true"
show_currency=$settings.currency.show
show_prev="false"
basket_amount=$amount
basket_attr=$attributes
}>
<{* Pant (#645): per-linje-hint — selve beløbet lægges til som særskilt række i
ordreoversigten, så linjeprisen forbliver ekskl. pant (prismærkningsreglerne) *}>
<{$line_deposit = $product->getDepositTotal($amount, $attributes)}>
<{if $line_deposit}>
+ <{t}>pant<{/t}>: <{$line_deposit|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency|escape}>
<{/if}>
<{* Antal på tilbud: kun en del af linjen fik tilbudsprisen, så stykprisen er et gennemsnit. Uden den her linje ligner det en fejl. *}>
<{assign var="sale_on_offer" value=$product->getSaleLimitAppliedAmount($amount, $attributes)}>
<{if $sale_on_offer && $sale_on_offer < $amount}>
<{math assign="sale_unit_avg" equation="x / y" x=$product->getRealPrice($amount, $attributes) y=$amount}>
<{$sale_unit_avg|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency|escape}>/<{t}>stk.<{/t}>
<{t x=$sale_on_offer y=$amount}>{x} af {y} stk. til tilbudspris<{/t}>
<{/if}>
<{if $product->isBulkDiscountActive($attributes) && $settings.badges.volumediscount_enable != '0'}>
<{assign var="bulk_unit_normal" value=$product->getRealPrice(1, $attributes, false, true)}>
<{assign var="bulk_unit_now" value=$product->getBulkDiscountPrice($attributes)}>
<{math assign="bulk_saved_line" equation="x * y" x=$product->getBulkDiscountInclVat() y=$amount}>
<{include file="components/badge.html" class="" variant="volumediscount" text="Mængderabat"|t}>
<{$bulk_unit_normal|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency|escape}>
<{$bulk_unit_now|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency|escape}>/<{t}>stk.<{/t}>
<{t x=$bulk_saved_line|number_format:$smarty.capture.decimal_number:$smarty.capture.decimal:$smarty.capture.thousand y=$currency}>Du sparer {x} {y}<{/t}>
<{/if}>
<{* Tilkøb (gaveindpakning o.l.) sælges typisk uden lager, så en "Restordre"-status ville forvirre kunden *}>
<{$card_profile = $product->getProfile()}>
<{if !$card_profile || !$card_profile->getIsAddon()}>
<{include file="components/stock-status.html" class="product-card-list__stock-status" product=$product}>
<{/if}>