- Posts: 14
- Thank you received: 0
Expiration date on plan list/plan view pages
- Alex P
- Topic Author
- Offline
- New Member
-
Less
More
1 year 4 months ago #164238
by Alex P
Expiration date on plan list/plan view pages was created 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:
and OSM_EXPIRATION constant as well.
Thanks!
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!
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.