Exemple #1
0
 /**
  * @param ShipmentCollectionPoint|ShipmentTransportCompany $shipment
  */
 private function addPriceDescription(ShipmentOption $shipment, $description)
 {
     if ($shipment->getPrice() > 0) {
         $description = sprintf('%s (%s)', $description, $this->moneyHelper->formatPrice($shipment->getPrice()));
     }
     return $description;
 }
Exemple #2
0
 public function formatPrice($price)
 {
     return $this->moneyHelper->formatPrice($price);
 }