Smartscript Solutions Forums  

Go Back   Smartscript Solutions Forums > Domain Trader Sales > Domain Trader Suggestions and Feedback

Reply
 
Thread Tools Display Modes
Old June 28th, 2007, 11:04 PM   #1
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Question Currency alignment

Anyone know how to get the currency amounts to line up on the left side or by the decimal point for USD?

Thanks!
Convergence is offline   Reply With Quote
Old October 9th, 2007, 06:43 PM   #2
Dotcomma
Senior Member
 
Join Date: Aug 2006
Posts: 98
Default Re: Currency alignment

Give me a little more info and maybe I can help you.
I am not entirley sure of what you mean.?

Regards
Danny
__________________
Selnico.com- Premium Domains
Dotcomma is offline   Reply With Quote
Old October 10th, 2007, 02:48 AM   #3
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Default Re: Currency alignment

Hi Danny,

Thanks for replying -

Right now DT aligns the currency amounts 'aligned left' so the '6' on 65.00 is under the '1' on 1,000.00 instead of being aligned by the decimal point or 'aligned right' -

This is on the front page where all the domains/amounts are in columns.

Thanks again for giving it a go!

~ Denis
Convergence is offline   Reply With Quote
Old October 10th, 2007, 03:00 PM   #4
Dotcomma
Senior Member
 
Join Date: Aug 2006
Posts: 98
Default Re: Currency alignment

Not that I have tested it yet, but maybe the answer would be to add an align="right" to the <td> cell of the price.

<td align="right">$10,000</td>

It is in the index_content.tpl file in smarty/

this is the code:
<td align="right">${$showcase_entries[i].min_offer|number_format}</td>

you may need to play with the widths of the header cells above this where it says domain name, price , min offer etc to make it look suited, I changed them to 60%, 12%, 28% respectively.
Hope this helps
__________________
Selnico.com- Premium Domains
Dotcomma is offline   Reply With Quote
Old October 10th, 2007, 04:58 PM   #5
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Default Re: Currency alignment

Thanks!

Had already tried the <td align="right">$10,000</td> but it threw everything off. Going to try it with the change in the header cells.

I'll let you know.

Thanks again!
Convergence is offline   Reply With Quote
Old October 10th, 2007, 05:09 PM   #6
Dotcomma
Senior Member
 
Join Date: Aug 2006
Posts: 98
Default Re: Currency alignment

Sure.
I tested it and it works OK when you realign the header cells.

__________________
Selnico.com- Premium Domains
Dotcomma is offline   Reply With Quote
Old October 10th, 2007, 05:56 PM   #7
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Default Re: Currency alignment

Thanks again -

Played around with it - has to be a little better way of doing it - couldn't get the spacing where it looked right, too close together.

Thanks again.
Convergence is offline   Reply With Quote
Old October 10th, 2007, 08:20 PM   #8
Dotcomma
Senior Member
 
Join Date: Aug 2006
Posts: 98
Default Re: Currency alignment

Currently I cannot think of any other way.? but I will carry on looking at it for you.

~Danny

This is What I tried:

Quote:
<tr>
<td class="domtabhead" width="40%" height="18">{$dt_phrase.indexcontent_phrase_6}</td>
<td class="domtabhead" width="33%" align="right">{$dt_phrase.indexcontent_phrase_7}</td>
<td class="domtabhead" width="27%">{$dt_phrase.indexcontent_phrase_8}</td>
</tr>
{if count($showcase_entries) > 0}
{section name="i" loop=$showcase_entries}
{cycle values="row1,row2" assign="row_class"}
<tr class="{$row_class}">
<td height="18"><a href="catalog.php?mode=viewdomain&id={$showcase_en tries[i].id}">{$showcase_entries[i].domain_name}</a></td>
<td align="right">${$showcase_entries[i].min_offer|number_format}</td>
<td>{if $showcase_entries[i].price eq 0}Best offer{else}{$showcase_entries[i].price|number_format}{/if}</td>
</tr>
and it panned out OK. All the changes I made are in RED
__________________
Selnico.com- Premium Domains

Last edited by Dotcomma; October 10th, 2007 at 08:31 PM.
Dotcomma is offline   Reply With Quote
Old October 10th, 2007, 08:46 PM   #9
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Default Re: Currency alignment

I didn't try the <td class="domtabhead" width="33%" align="right">

I'll give that a shot -

Thanks again for your help!

~ Denis
Convergence is offline   Reply With Quote
Old October 10th, 2007, 09:44 PM   #10
Convergence
Senior Member
 
Convergence's Avatar
 
Join Date: Jan 2006
Posts: 244
Default Re: Currency alignment

Danny,

BINGO! Thanks - I played around with the widths as well as some of the alignments. Got it where it was acceptable. Take a look!

Thanks again!

~ Denis
Convergence is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:13 PM.


Powered by vBulletin Version 3.6.7 Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.

Copyright Smartscript Solutions