Creating a formatCurrency function

This commit is contained in:
2024-08-06 20:52:46 +02:00
parent 20f7bd529f
commit f952caf3f6
2 changed files with 10 additions and 3 deletions

View File

@ -19,8 +19,8 @@ Buy one widget
autocomplete="off"
novalidate="">
<input type="hidden" name="product_id" value="{{$widget.ID}}">
<input type="hidden" name="amount" value="{{$widget.Price}}">
<h3 class="mt-2 mb-3 text-center">{{$widget.Name}}: {{$widget.Price}}</h3>
<input type="hidden" id="amount" name="amount" value="{{$widget.Price}}">
<h3 class="mt-2 mb-3 text-center">{{$widget.Name}}: {{formatCurrency $widget.Price}}</h3>
<p class="mt-2 mb-3 text-center">{{$widget.Description}}</p>
<hr>