- // Secure pricing
- $price = (float) $price;
-
- // Debug message
- if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der Händler <strong>%s</strong> kann nun das Schiffsteil <strong>%s</strong> "<strong>%s</strong>" zu <strong>%s</strong> verkaufen.<br />\n",
- __CLASS__,
- __LINE__,
- $this->getMerchantName(),
- $itemInstance->__toString(),
- $itemInstance->getObjectDescription(),
- $this->formatCurrency($price)
- ));
-
- // Construct pricing item and add it to the list
- $this->priceList->append(array(
- 'item' => $itemInstance,
- 'price' => $price
- ));
-
- // Remove price attribute
- $itemInstance->removePrice();