Header Shop bug
This commit is contained in:
parent
39d1e93416
commit
80e6540f73
6 changed files with 23 additions and 11 deletions
|
|
@ -97,7 +97,7 @@ class LeadController extends Controller
|
||||||
$user->account = new UserAccount();
|
$user->account = new UserAccount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$next_account_id = UserAccount::max('m_account') +1;
|
$next_account_id = UserAccount::withTrashed()->max('m_account') +1;
|
||||||
if($user->account->m_account === null){
|
if($user->account->m_account === null){
|
||||||
$user->account->m_account = $next_account_id;
|
$user->account->m_account = $next_account_id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -507,7 +507,7 @@ class Product extends Model
|
||||||
|
|
||||||
public function getFormattedPriceCurrencyWith(Bool $net = true, Bool $ufactor = true, Country $country = null){
|
public function getFormattedPriceCurrencyWith(Bool $net = true, Bool $ufactor = true, Country $country = null){
|
||||||
$ret = "";
|
$ret = "";
|
||||||
if($country->currency){
|
if($country && isset($country->currency) && $country->currency){
|
||||||
$price = $this->getPriceWith($net, $ufactor, $country);
|
$price = $this->getPriceWith($net, $ufactor, $country);
|
||||||
$ret = formatNumber($price * $country->currency_faktor)." ".$country->currency_unit;
|
$ret = formatNumber($price * $country->currency_faktor)." ".$country->currency_unit;
|
||||||
return '<br><span class="small">~'.$ret.'<span>';
|
return '<br><span class="small">~'.$ret.'<span>';
|
||||||
|
|
|
||||||
|
|
@ -25,16 +25,18 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-sm-5">
|
<div class="form-group col-sm-10">
|
||||||
<label class="form-label" for="title">{{ __('Kategorie (Mehrfachauswahl)') }}*</label>
|
<label class="form-label" for="title">{{ __('Kategorie (Mehrfachauswahl)') }}*</label>
|
||||||
<select class="selectpicker" name="categories[]" id="categories" data-style="btn-light" data-live-search="false" multiple required>
|
<select class="selectpicker" name="categories[]" id="categories" data-style="btn-light" data-live-search="false" multiple required>
|
||||||
{!! HTMLHelper::getCategoriesOptions($product->categories()->pluck('category_id')->toArray(), false) !!}
|
{!! HTMLHelper::getCategoriesOptions($product->categories()->pluck('category_id')->toArray(), false) !!}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
{{--
|
||||||
<div class="form-group col-sm-5">
|
<div class="form-group col-sm-5">
|
||||||
<label class="form-label" for="show_at">{{ __('Produkt anzeigen') }} alt</label>
|
<label class="form-label" for="show_at">{{ __('Produkt anzeigen') }} alt</label>
|
||||||
{{ Form::select('show_at', $product->showATs, $product->show_at, array('data-live-search'=>'false', 'class'=>'selectpicker', 'id'=>'show_at') ) }}
|
{{ Form::select('show_at', $product->showATs, $product->show_at, array('data-live-search'=>'false', 'class'=>'selectpicker', 'id'=>'show_at') ) }}
|
||||||
</div>
|
</div>
|
||||||
|
--}}
|
||||||
|
|
||||||
<div class="form-group col-sm-2">
|
<div class="form-group col-sm-2">
|
||||||
<label class="form-label" for="pos">{{ __('Listenposition') }}</label>
|
<label class="form-label" for="pos">{{ __('Listenposition') }}</label>
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@
|
||||||
div.side-nav ul.list-group-bordered > li.list-group-item.active > a:hover{
|
div.side-nav ul.list-group-bordered > li.list-group-item.active > a:hover{
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,6 @@
|
||||||
color: #535252 !important;
|
color: #535252 !important;
|
||||||
border-color: #989a9c;
|
border-color: #989a9c;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -100,7 +99,7 @@
|
||||||
Wenn du dein Land änderst, wirst du von deiner aktuellen Sitzung abgemeldet und dein Warenkorb wird geleert.
|
Wenn du dein Land änderst, wirst du von deiner aktuellen Sitzung abgemeldet und dein Warenkorb wird geleert.
|
||||||
</p>
|
</p>
|
||||||
{!! Form::open(['url' => '/change_website_lang']) !!}
|
{!! Form::open(['url' => '/change_website_lang']) !!}
|
||||||
<label>Land*</label>
|
<label>Lieferland*</label>
|
||||||
<select id="change_country_id" name="change_country_id" class="form-control pointer margin-bottom-20">
|
<select id="change_country_id" name="change_country_id" class="form-control pointer margin-bottom-20">
|
||||||
@foreach ($mylangs as $mycid => $mycountry)
|
@foreach ($mylangs as $mycid => $mycountry)
|
||||||
<option value="{{ $mycid }}" @if($country->id === $mycountry->id) selected @endif>{{ $mycountry->getLocated() }}</option>
|
<option value="{{ $mycid }}" @if($country->id === $mycountry->id) selected @endif>{{ $mycountry->getLocated() }}</option>
|
||||||
|
|
|
||||||
|
|
@ -47,20 +47,33 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: #b0adb3 1px solid;
|
border: #b0adb3 1px solid;
|
||||||
}
|
}
|
||||||
|
#topBar {
|
||||||
|
|
||||||
|
}
|
||||||
|
#topBar ul.top-links > li > a {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@if(isset($mylangs))
|
@if(isset($mylangs))
|
||||||
|
<style>
|
||||||
|
@media only screen and (max-width: 992px) {
|
||||||
|
/* Force 60px */
|
||||||
|
#header {
|
||||||
|
height:105px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<div id="topBar">
|
<div id="topBar">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
|
|
||||||
<ul class="top-links list-inline pull-right">
|
<ul class="top-links list-inline pull-right">
|
||||||
<li>
|
<li>
|
||||||
@if (isset($mylangs[\App\Services\Shop::getUserShopLang()]))
|
@if (isset($mylangs[\App\Services\Shop::getUserShopLang()]))
|
||||||
@php($country = $mylangs[\App\Services\Shop::getUserShopLang()])
|
@php($country = $mylangs[\App\Services\Shop::getUserShopLang()])
|
||||||
<a id="sidepanel_btn" href="#" class="no-text-underline"><img class="flag-lang" src="/images/flags/{{ strtolower($country->code) }}.png" width="16" height="11" alt="lang" /> {{ $country->getLocated() }}</a>
|
<span>Lieferland:</span> <a id="sidepanel_btn" href="#" class="no-text-underline"><img class="flag-lang" src="/images/flags/{{ strtolower($country->code) }}.png" width="16" height="11" alt="lang" /> {{ $country->getLocated() }}</a>
|
||||||
@endif
|
@endif
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{-- <li class="text-welcome hidden-xs">Welcome to Smarty, <strong>John Doe</strong></li>
|
{{-- <li class="text-welcome hidden-xs">Welcome to Smarty, <strong>John Doe</strong></li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#"><i class="fa fa-user hidden-xs"></i> MY ACCOUNT</a>
|
<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#"><i class="fa fa-user hidden-xs"></i> MY ACCOUNT</a>
|
||||||
|
|
@ -75,9 +88,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>--}}
|
</li>--}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue