public function getPriceDescription() { $product = new Cart66Product(); $spreedlyProduct = $product->getOne("where spreedly_subscription_id = {$this->id}"); if (!empty($spreedlyProduct->priceDescription)) { $out = $spreedlyProduct->priceDescription; } else { $price = $this->price; $out = Cart66Common::currency($price) . ' / ' . $this->terms; if ($this->hasFreeTrial()) { $duration = $this->chargeLaterDurationQuantity . ' ' . $this->chargeLaterDurationUnits; $out .= " <span class='Cart66FreePeriod'>(first {$duration} free)</span>"; } } return $out; }