Skip to content

Commit

Permalink
Rundungsproblematik angepasst
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokko11 committed Jul 18, 2013
1 parent 91ec4f1 commit 89b3852
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -23,10 +23,10 @@ protected function _toHtml()
$orderIncrementId = Mage::getModel('checkout/session')->getLastRealOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);

$fields['discount_amount'] = (string)(float) '0.0';
$fields['shipping'] = (string)(float) '0.0';
$fields['tax'] = (string)(float) '0.0';
$fields['amount'] = (string)(float) $order->getBaseGrandTotal();
$fields['discount_amount'] = '0.00';
$fields['shipping'] = '0.00';
$fields['tax'] = '0.00';
$fields['amount'] = number_format((float) $order->getBaseGrandTotal(),2);


foreach ($fields as $field => $value) {
Expand Down

1 comment on commit 89b3852

@Rokko11
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es wird hier die number_format-Funktion und nicht die Magento eigene verwendet, weil an dieser Stelle Paypal bestimmt, welches Format akzeptiert wird - nicht Magento.

Please sign in to comment.