{{$subtotal = new \IPS\Math\Number('0');}} {{if \count( $_SESSION['cart'] )}}
{{foreach $_SESSION['cart'] as $id => $item}} {{if $item instanceof \IPS\nexus\extensions\nexus\Item\Package}} {{try { $package = \IPS\nexus\Package::load( $item->id ); } catch( \OutOfRangeException $e ) { unset($_SESSION['cart'][$key]); continue; } }} {{endif}}
{{if $item instanceof \IPS\nexus\extensions\nexus\Item\Package and $package->image}} {{else}}
 
{{endif}}

{{if !$package->subscription}}{$item->quantity} x {{endif}}{$item->name}

{{foreach $item->details as $k => $v}} {lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}
{{endforeach}}
{{if settings.nexus_show_tax}} {{$location = $location ?: \IPS\nexus\Customer::loggedIn()->estimatedLocation();}} {{$itemPrice = $item->grossPrice( $location );}} {{$linePrice = $item->grossLinePrice( $location );}} {{else}} {{$itemPrice = $item->price;}} {{$linePrice = $item->linePrice();}} {{endif}} {$linePrice} {{$subtotal = $subtotal->add( $linePrice->amount );}} {{if $item->renewalTerm}}

{lang="and_renewal" sprintf="$item->renewalTerm->toDisplay( NULL, $item->quantity )"}

{{endif}} {{if $item->quantity > 1}}

{{if $item->renewalTerm}} {lang="each_short_with_renewal" sprintf="$itemPrice, $item->renewalTerm"} {{else}} {lang="each_short" sprintf="$itemPrice"} {{endif}}

{{endif}}
{{endforeach}}
{lang="cart_subtotal"}: {money="$subtotal" currency="$currency"}

{{else}}
{lang="your_cart_empty"}

{lang="start_shopping"}
{{endif}}