- Posts: 229
- Thank you received: 4
Add CSS class to table cell if price is disounted
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
5 years 11 months ago #124504
by Patrick
Add CSS class to table cell if price is disounted was created by Patrick
Hi
In table layout it would be nice to have an extra CSS class if a discount price is shown.
I have done this with an override. In events_table.php I added this code:
Here is an example: prntscr.com/nh460o
I'm not sure it this code is best solution, but it works
Maybe you want to add extra CSS class in core, so no override is needed? :whistle:
Thanks.
Patrick
In table layout it would be nice to have an extra CSS class if a discount price is shown.
I have done this with an override. In events_table.php I added this code:
Code:
<?php if ($item->discounted_price < $item->individual_price) : ?>
<span class="discount-symbol"></span>
<?php endif; ?>
Here is an example: prntscr.com/nh460o
I'm not sure it this code is best solution, but it works

Maybe you want to add extra CSS class in core, so no override is needed? :whistle:
Thanks.
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 11 months ago #124516
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add CSS class to table cell if price is disounted
Hi Patrick
Please use this override for now. If there are more customers need this, I will consider supporting it in the future
Tuan
Please use this override for now. If there are more customers need this, I will consider supporting it in the future
Tuan
The following user(s) said Thank You: Patrick
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
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.