Style of proxy bid - FIXED IN V3.0

Post Reply
bamse
Posts: 220
Joined: Mon Feb 06, 2012 12:05 pm
Contact:

Style of proxy bid - FIXED IN V3.0

Post by bamse » Sat Nov 17, 2012 10:03 pm

The display of automatic/proxy/real bids in themes/userBids.php is done via printf and therefore might look different than any other prices on the site (which are done via String::printMoney) if for instance thousand separators are activated or if another locale is used (which uses comma instead of full stops for decimals) or if no decimals is set in the backend (printf displays decimals).

My suggestion would be in themes/userBids.php to replace:

Code: Select all

if(substr($v['comment'],0,7) == "realBid"){
              $realBid = floatval(substr($v['comment'],8));
               if($realBid != $v['value']){
                       printf(" (%0.2f)",$realBid);
               }
}
with

Code: Select all

if(substr($v['comment'],0,7) == "realBid"){
             $realBid = floatval(substr($v['comment'],8));
             if($realBid != $v['value']){ ?>
                     (<?= String::printMoney( $realBid,$siteOptions);?>)
              <?}
}
or something similar.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest