Skip to content

Commit

Permalink
[FIX] Currency symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Dec 11, 2024
1 parent b6eb246 commit d7fbd26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion views/prodattributesTab.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
@push('scripts.bot')
<div id="actions">
<div class="btn-group">
<a id="Button5" class="btn btn-secondary" href="{!!$moduleUrl!!}{{request()->has('page') ? '&page=' . request()->page : ''}}">
<a id="Button5" class="btn btn-secondary" href="{!!$moduleUrl!!}&get=products{{request()->has('page') ? '&page=' . request()->page : ''}}">
<i class="fa fa-times-circle"></i><span>@lang('sCommerce::global.to_list_products')</span>
</a>
<a id="Button1" class="btn btn-success" href="javascript:void(0);" onclick="saveForm('#form');">
Expand Down
4 changes: 2 additions & 2 deletions views/productTab.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<div class="input-group-prepend">
<select name="currency" class="form-control" onchange="documentDirty=true;" style="background-color: #e9ecef;">
@foreach(sCommerce::getCurrencies(sCommerce::config('basic.available_currencies', [])) as $cur)
<option value="{{$cur['alpha']}}" @if(($item->currency ?? sCommerce::config('basic.main_currency', 'USD')) == $cur['alpha']) selected @endif data-tooltip="{{$cur['name']}}">{{$cur['symbol']}}</option>
<option value="{{$cur['alpha']}}" @if(($item->currency ?? sCommerce::config('basic.main_currency', 'USD')) == $cur['alpha']) selected @endif data-tooltip="{{$cur['name']}}">{{str_replace('&nbsp;', ' ', trim($cur['symbol'] ?? '&nbsp;'))}}</option>
@endforeach
</select>
</div>
Expand All @@ -97,7 +97,7 @@
</div>
<div class="input-group col">
<div class="input-group-prepend">
<span class="input-group-text"><small>{{sCommerce::getCurrencies([$item->currency ?? sCommerce::config('basic.main_currency', 'USD')])->first()['symbol']}}</small></span>
<span class="input-group-text"><small>{{str_replace('&nbsp;', ' ', trim(sCommerce::getCurrencies([$item->currency ?? sCommerce::config('basic.main_currency', 'USD')])->first()['symbol']))}}</small></span>
</div>
<input id="price_special" class="form-control" name="price_special" value="{{$item->price_special ?? ''}}" onblur="documentDirty=true;">
</div>
Expand Down

0 comments on commit d7fbd26

Please sign in to comment.