encoder(); try { $products = $this->miniBasket->getProducts(); $priceItem = $this->miniBasket->getPrice(); $priceValue = $priceItem->getValue(); $priceService = $priceItem->getCosts(); $priceCurrency = $this->translate( 'client/html/currency', $priceItem->getCurrencyId() ); } catch( Exception $e ) { $priceValue = $priceCosts = '0.00'; $priceCurrency = ''; $products = array(); } /// Price format with price value (%1$s) and currency (%2$s) $priceFormat = $this->translate( 'client/html', '%1$s %2$s' ); ?>
html( $this->translate( 'client/html', '▼' ), $enc::TRUST ); ?>
html( $this->translate( 'client/html', 'Product' ), $enc::TRUST ); ?> html( $this->translate( 'client/html', 'Qty' ), $enc::TRUST ); ?> html( $this->translate( 'client/html', 'Price' ), $enc::TRUST ); ?>
html( $product->getName() ) ?> html( $product->getQuantity() ) ?> html( sprintf( $priceFormat, $this->number( $product->getPrice()->getValue() ), $priceCurrency ) ); ?>
html( $this->translate( 'client/html', 'Shipping' ), $enc::TRUST ); ?> html( sprintf( $priceFormat, $this->number( $priceService ), $priceCurrency ) ); ?>
html( $this->translate( 'client/html', 'Total' ), $enc::TRUST ); ?> html( sprintf( $priceFormat, $this->number( $priceValue + $priceService ), $priceCurrency ) ); ?>
get( 'productBody' ); ?>