Beispiel #1
0
 /**
  * Format option value process
  *
  * @param array|string $value
  * @return string
  */
 protected function _formatOptionValue($value)
 {
     $order = $this->getOrder();
     $resultValue = '';
     if (is_array($value)) {
         if (isset($value['qty'])) {
             $resultValue .= $this->filterManager->sprintf($value['qty'], array('format' => '%d')) . ' x ';
         }
         $resultValue .= $value['title'];
         if (isset($value['price'])) {
             $resultValue .= " " . $order->formatPrice($value['price']);
         }
         return $resultValue;
     } else {
         return $value;
     }
 }