Post by Kyoufushin » Thu Sep 18, 2014 10:43 am

Hi, I'd like to bold only the total title and value.

based on a search, I was able to find
http://forum.opencart.com/viewtopic.php?f=21&t=51730

Was able to remove the <b> from the invoice tpl file and apply bold to only the "total" word but I wasn't able to bold the total's currency and value.

Can anyone guide me with this please? :)

Newbie

Posts

Joined
Wed Jul 16, 2014 4:53 pm

Post by andrei.bogdan » Thu Sep 18, 2014 7:48 pm

Hi,

Maybe you can do something like this:

Code: Select all

<?php foreach ($order['total'] as $total) { ?>
    <tr>
      <td align="right" colspan="4"><b><?php echo $total['title']; ?>:</b></td>
<?php if ( $total['title'] == 'Total' ) { ?>
<td align="right"><b><?php echo $total['text']; ?></b></td>
<?php } else { ?>
<td align="right"><?php echo $total['text']; ?></td>
<?php } ?>
    </tr>
    <?php } ?>
So the code checks if the current displayed 'total' is the actual total and adds the <b> tag to it.

It may not be the best way, but it's a quick workaround.

Hope it helps.

Andy

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am
Who is online

Users browsing this forum: No registered users and 8 guests