Expiration date on plan list/plan view pages

  • Alex P
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #164238 by Alex P
Hi Tuan,

For plans with fixed expiration date there is no table row similar to Duration. I have to add it thru overrides (second plan on screenshot). I would be great to have it by default.

Here is the code you need to add in ./common/plan_information.php around line 103, between DURATION and PRICE sections:
Code:
?php if ($item->expired_date && ($item->expired_date !== $nullDate)) { ?> <tr>     <td><?php echo Text::_('OSM_EXPIRATION'); ?>:</td>     <td>         <?php              echo $item->expired_date;         ?>     </td> </tr> <?php  }  ?>

and OSM_EXPIRATION constant as well.

Thanks!
Attachments:

Please Log in or Create an account to join the conversation.