Skip to content

Commit

Permalink
Added number_format to cost so it will always show 2 decimal points
Browse files Browse the repository at this point in the history
  • Loading branch information
David Slater committed Jul 23, 2024
1 parent 2fca6d1 commit 3aa09ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
$rushOrderId = $rushOrderResult[0]["rushOrder_id"];

//Calculates Total Cost
$totalCost = ($posterLength * $paperTypeCost) + $finishOptionCost + ($posterTube * $posterTubeCost) + ($rushOrder * $rushOrderCost);
$totalCost = number_format(($posterLength * $paperTypeCost) + $finishOptionCost + ($posterTube * $posterTubeCost) + ($rushOrder * $rushOrderCost),2);

//outputs the order information to confirm the order.
$form_html = "<table class='medium_center'>";
Expand Down

0 comments on commit 3aa09ea

Please sign in to comment.