Missing last decimal point in ecart
Please tell me where to look to correct this issue. Screen shot attached. If a product cost $100, no problem if if a product costs $33.20 it shows $33.2 … missing the final cent digit.
Thanks
Please tell me where to look to correct this issue. Screen shot attached. If a product cost $100, no problem if if a product costs $33.20 it shows $33.2 … missing the final cent digit.
Thanks
Send a copy of the page please so i can see the code.
try using the php number_format function to force 2 decimal places:
<?php echo(number_format($row_WADAproducts['ProductPrice'], 2)); ?>
http://us2.php.net/number_format
I wasn't sure where to put it, but tried it after the /webassist/form/validation near top of page. It didn't affect it. Is there a particular place it should go?
Ah… maybe you meant to change the line to include the two… trying that.
in your page, you have the following code to display the price:
<div class="WADAResultPrice">$<?php echo($row_WADAproducts['ProductPrice']); ?></div>
use number format on that code:
<div class="WADAResultPrice">$<?php echo(number_format($row_WADAproducts['ProductPrice'], 2)); ?></div>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.