is_trialing() && empty($payment->get_total()); $notes = []; if ($is_trial_setup) { $desc = $membership->get_recurring_description(); $date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true))); $notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-multisite-waas'), $date); } $original_cart = $payment->get_meta('wu_original_cart'); $should_auto_renew = ! empty($original_cart) ? $original_cart->should_auto_renew() : false; $recurring_total = $membership->get_amount(); if ($membership->is_recurring() && $should_auto_renew) { $payment_total = $payment->get_total() ?: $membership->get_initial_amount(); $desc = $membership->get_recurring_description(); if ($recurring_total !== $payment_total) { $recurring_total_format = wu_format_currency($recurring_total, $payment->get_currency()); if ($original_cart->get_cart_type() === 'downgrade') { $subtotal = wu_format_currency($payment->get_subtotal(), $payment->get_currency()); if ($is_trial_setup) { $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date, $subtotal, $desc); } else { $date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true))); $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date_renew, $subtotal, $desc); } } elseif ($is_trial_setup) { $initial_amount_format = wu_format_currency($membership->get_initial_amount(), $payment->get_currency()); $notes[] = sprintf(__('After the first payment of %1$s you will be billed %2$s %3$s.', 'wp-multisite-waas'), $initial_amount_format, $recurring_total_format, $desc); } else { $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } } else { $recurring_total_format = wu_format_currency($recurring_total, $payment->get_currency()); if ($is_trial_setup) { $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc); } else { $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-multisite-waas'), $desc); } } } $note = implode(' ', $notes); $subtotal = 0; ?>


get_line_items() as $line_item) : $subtotal += $line_item->get_subtotal(); ?> get_tax_breakthrough() as $rate => $total) : ?>
get_title(); ?> xget_quantity(); ?> get_subtotal(), $payment->get_currency()); ?>
get_currency()); ?>
get_currency()); ?>
get_total(), $payment->get_currency()); ?>