Country Prices | Homeparty | Shop | Order

This commit is contained in:
Kevin Adametz 2021-08-27 18:53:12 +02:00
parent 51d81d8ec6
commit 39d1e93416
284 changed files with 784 additions and 216 deletions

View file

@ -70,12 +70,48 @@
div.side-nav ul.list-group-bordered > li.list-group-item.active > a:hover{
color: #fff !important;
}
#sidepanel {
width: 340px;
}
select.form-control {
color: #535252 !important;
border-color: #989a9c;
}
</style>
</head>
<body class="smoothscroll enable-animation">
@if(isset($mylangs))
<div id="sidepanel" class="sidepanel-light">
<a id="sidepanel_close" href="#"><!-- close -->
<i class="glyphicon glyphicon-remove"></i>
</a>
<div class="sidepanel-content">
@if (isset($mylangs[\App\Services\Shop::getUserShopLang()]))
@php($country = $mylangs[\App\Services\Shop::getUserShopLang()])
<h2 class="sidepanel-title">Du befindest dich im Shop: {{ $country->getLocated() }}</h2>
@endif
<p>Wichtiger Hinweis: Bestellungen im ausgewählten Land können nur innerhalb dieses Landes versandt werden.
Wenn du dein Land änderst, wirst du von deiner aktuellen Sitzung abgemeldet und dein Warenkorb wird geleert.
</p>
{!! Form::open(['url' => '/change_website_lang']) !!}
<label>Land*</label>
<select id="change_country_id" name="change_country_id" class="form-control pointer margin-bottom-20">
@foreach ($mylangs as $mycid => $mycountry)
<option value="{{ $mycid }}" @if($country->id === $mycountry->id) selected @endif>{{ $mycountry->getLocated() }}</option>
@endforeach
</select>
<button class="btn btn-primary btn-block" type="submit">Land wechseln</button>
{!! Form::close() !!}
</div>
</div>
@endif
@yield('layout-content')
<!-- SCROLL TO TOP -->

View file

@ -49,7 +49,39 @@
}
</style>
<!-- TOP NAV -->
@if(isset($mylangs))
<div id="topBar">
<div class="container">
<ul class="top-links list-inline pull-right">
<li>
@if (isset($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>
@endif
</li>
{{-- <li class="text-welcome hidden-xs">Welcome to Smarty, <strong>John Doe</strong></li>
<li>
<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#"><i class="fa fa-user hidden-xs"></i> MY ACCOUNT</a>
<ul class="dropdown-menu pull-right">
<li><a tabindex="-1" href="#"><i class="fa fa-history"></i> ORDER HISTORY</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#"><i class="fa fa-bookmark"></i> MY WISHLIST</a></li>
<li><a tabindex="-1" href="#"><i class="fa fa-edit"></i> MY REVIEWS</a></li>
<li><a tabindex="-1" href="#"><i class="fa fa-cog"></i> MY SETTINGS</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#"><i class="glyphicon glyphicon-off"></i> LOGOUT</a></li>
</ul>
</li>--}}
</ul>
</div>
</div>
@endif
<header id="topNav">
<div class="container">
@ -129,7 +161,12 @@
<div class="text-left">
<strong>Zwischensumme:</strong> <strong class="pull-right">{{ Yard::instance('shopping')->total() }} </strong>
<br>
<em style="font-size: 0.9em">inkl. MwSt. zzgl. Versandkosten</em>
@if(Yard::instance('shopping')->getUserTaxFree())
<em style="font-size: 0.9em">exkl. MwSt. zzgl. Versandkosten</em>
@else
<em style="font-size: 0.9em">inkl. MwSt. zzgl. Versandkosten</em>
@endif
</div>
<a href="{{ url(Util::getPostRoute().'card/show') }}" class="btn btn-primary btn-text-500 btn-block mt-3 faa-parent animated-hover">zum Warenkorb <i class="fa fa-shopping-cart faa-horizontal"></i></a>