{{$location = NULL;}} {{if isset( $_SESSION['cart'] ) and \count( $_SESSION['cart'] ) and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'nexus', 'store' ) )}} {{$subtotal = new \IPS\Math\Number('0');}}
  • {expression="\IPS\nexus\Application::cartCount()"}  {lang="cart"}

    {lang="your_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'][$id]); continue; } }} {{endif}}
    • {{if $item instanceof \IPS\nexus\extensions\nexus\Item\Package and $package->image}} {$package->_title} {{else}}
       
      {{endif}}
      {$item->name}
      ×{$item->quantity}
      {{if settings.nexus_show_tax}} {{$location = $location ?: \IPS\nexus\Customer::loggedIn()->estimatedLocation();}} {{$linePrice = $item->grossLinePrice( $location );}} {{else}} {{$linePrice = $item->linePrice();}} {{endif}} {$linePrice} {{$subtotal = $subtotal->add( $linePrice->amount );}} {{if $item->quantity > 1}}

      {lang="each_short" sprintf="$item->price"}

      {{endif}}
    • {{endforeach}}
    • {lang="subtotal"}
      {money="$subtotal"}
  • {{else}}
  • {{endif}}