encoder(); $iface = 'MShop_Price_Item_Interface'; $prices = $this->get( 'prices', array() ); if( !is_array( $prices ) ) { $prices = array( $prices ); } $format = array( /// Price quantity format with quantity (%1$s) 'quantity' => $this->translate( 'client/html', 'from %1$s' ), /// Price format with price value (%1$s) and currency (%2$s) 'value' => $this->translate( 'client/html', '%1$s %2$s' ), /// Price shipping format with shipping / payment cost value (%1$s) and currency (%2$s) 'costs' => $this->translate( 'client/html', '+ %1$s %2$s/item' ), /// Rebate format with rebate value (%1$s) and currency (%2$s) 'rebate' => $this->translate( 'client/html', '%1$s %2$s off' ), /// Rebate percent format with rebate percent value (%1$s) 'rebate%' => $this->translate( 'client/html', '-%1$s%%' ), /// Tax rate format with tax rate in percent (%1$s) 'taxrate' => $this->translate( 'client/html', 'Incl. %1$s%% VAT' ), ); ?> getCosts(); $rebate = $priceItem->getRebate(); $currency = $this->translate( 'client/html/currency', $priceItem->getCurrencyId() ); ?>
html( sprintf( $format['quantity'], $priceItem->getQuantity() ), $enc::TRUST ); ?> html( sprintf( $format['value'], $this->number( $priceItem->getValue() ), $currency ), $enc::TRUST ); ?> 0 ) : ?> html( sprintf( $format['rebate'], $this->number( $rebate ), $currency ), $enc::TRUST ); ?> html( sprintf( $format['rebate%'], $this->number( round( $rebate * 100 / ( $priceItem->getValue() + $rebate ) ), 0 ) ), $enc::TRUST ); ?> 0 ) : ?> html( sprintf( $format['costs'], $this->number( $costs ), $currency ), $enc::TRUST ); ?> html( sprintf( $format['taxrate'], $this->number( $priceItem->getTaxrate() ) ), $enc::TRUST ); ?>