Skip to content

Commit

Permalink
Don't double the discount on output in View Payment Details. See #1677
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerfinnell committed Nov 17, 2013
1 parent 4cb6a67 commit 9071368
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/admin/payments/view-order-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@
$i = 0;
foreach ( $cart_items as $key => $cart_item ) :
$id = isset( $payment_meta['cart_details'] ) ? $cart_item['id'] : $cart_item;
$price_override = isset( $payment_meta['cart_details'] ) ? $cart_item['price'] : null;
$price = edd_get_download_final_price( $id, $user_info, $price_override );
$price = $cart_item[ 'price' ];
?>
<tr class="<?php if ( $i % 2 == 0 ) { echo 'alternate'; } ?>">
<td class="name column-name">
Expand Down

0 comments on commit 9071368

Please sign in to comment.