Skip to content

Commit

Permalink
Merge pull request #5 from upsellpl/bugfix-wrong-price-renew-course
Browse files Browse the repository at this point in the history
bugfix wrong price when renew course (bundle)
  • Loading branch information
upsellpl authored Feb 25, 2021
2 parents 080938e + f8e7071 commit bed0615
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/payments/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1013,12 +1013,15 @@ function edd_get_payment_meta_cart_details( $payment_id, $include_bundle_files =
continue;

foreach ( $products as $product_id ) {

$options = edd_has_variable_prices( $product_id ) ? ['price_id' => edd_get_default_variable_price( $product_id )] : [];

$cart_details[] = array(
'id' => $product_id,
'name' => get_the_title( $product_id ),
'item_number' => array(
'id' => $product_id,
'options' => array(),
'options' => $options,
),
'price' => 0,
'subtotal' => 0,
Expand Down Expand Up @@ -1602,7 +1605,7 @@ function edd_get_payment_note_html( $note, $payment_id = 0 ) {
} else {
$user = __( 'EDD Bot', 'easy-digital-downloads' );
}

$user = apply_filters( 'edd_get_payment_note_user', $user );

$date_format = get_option( 'date_format' ) . ', ' . get_option( 'time_format' );
Expand Down

0 comments on commit bed0615

Please sign in to comment.