Added back number_format() function as there was a way to just remove the commas but keep the decimal place so 290.90 doesnt look like 290.9

This commit is contained in:
johnnyq
2023-11-01 18:16:12 -04:00
parent 572f12eaef
commit 5a7c62c150
15 changed files with 15 additions and 15 deletions

View File

@@ -55,7 +55,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-dollar-sign"></i></span>
</div>
<input type="text" inputmode="numeric" pattern="[0-9]*\.?[0-9]{0,2}" class="form-control" name="price" value="<?php echo $product_price; ?>" placeholder="0.00" required>
<input type="text" inputmode="numeric" pattern="[0-9]*\.?[0-9]{0,2}" class="form-control" name="price" value="<?php echo number_format($product_price, 2, '.', ''); ?>" placeholder="0.00" required>
</div>
</div>
</div>