old_price_per_day ) ) { $this->old_price_per_day = apply_filters( 'wcs_switch_proration_old_price_per_day', 0, $this->subscription, $this->cart_item, 0, $this->get_days_in_old_cycle() ); } return $this->old_price_per_day; } /** * Gets the total paid for the current period. * * For items being added to a subscription there isn't anything paid which needs to be honoured and so 0 has been paid. * * @since 2.6.0 * @return float */ public function get_total_paid_for_current_period() { return 0; } /** * Determines if the last order was a switch and the outcome of that was a fully reduced pre-paid term. * Since the last order didn't contain this item, we can safely return false here. * * @since 3.0.7 * @return bool Whether the last order was a switch and it fully reduced the prepaid term. */ protected function is_switch_after_fully_reduced_prepaid_term() { return false; } /** Helper functions */ /** * Determines whether the new product's trial period matches the old product's trial period. * * For items being added to a subscription there isn't an existing item to match so false is returned. * * @since 2.6.0 * @return bool */ public function trial_periods_match() { return false; } }