function renderTerms(Product $record)
 {
     if (!$record->getBillingPlan(false)) {
         return;
     }
     $plans = $record->getBillingPlans();
     $t = array();
     foreach ($plans as $plan) {
         $t[] = sprintf(count($plans) > 1 && $plan->pk() == $record->default_billing_plan_id ? '<strong>%s</strong>' : '%s', $this->escape($plan->getTerms()));
     }
     $t = implode('<br />', $t);
     return $this->renderTd($t, false);
 }
Example #2
0
 function renderTerms(Product $record)
 {
     if (!$record->getBillingPlan(false)) {
         return;
     }
     $product_paysystem = $this->getDi()->config->get('product_paysystem');
     $plans = $record->getBillingPlans();
     $t = array();
     foreach ($plans as $plan) {
         $term = sprintf(count($plans) > 1 && $plan->pk() == $record->default_billing_plan_id ? '<strong>%s</strong>' : '%s', $this->escape($plan->getTerms()));
         if ($product_paysystem && $plan->paysys_id) {
             $term .= sprintf(' (%s)', $plan->paysys_id);
         }
         $t[] = $term;
     }
     $t = implode('<br />', $t);
     return $this->renderTd($t, false);
 }
 function renderTerms(Product $record)
 {
     if (!$record->getBillingPlan(false)) {
         return;
     }
     $t = $this->escape($record->getBillingPlan()->getTerms());
     return $this->renderTd($t);
 }