previous changes
This commit is contained in:
parent
7d350178ea
commit
90eed2792b
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
<div class="control-group">
|
||||
<div class="control-group" :class="[errors.has(inputName + '[value]') ? 'has-error' : '']">
|
||||
<input type="number" v-validate="'required|min_value:0'" :name="[inputName + '[value]']" v-model="customerGroupPrice.value" class="control" data-vv-as=""{{ __('admin::app.catalog.products.value') }}""/>
|
||||
<input type="number" v-validate="'required|min_value:0'" :name="[inputName + '[value]']" v-model="customerGroupPrice.value" class="control" data-vv-as=""{{ __('admin::app.datagrid.price') }}""/>
|
||||
<span class="control-error" v-if="errors.has(inputName + '[value]')">@{{ errors.first(inputName + '[value]') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Grouped extends AbstractType
|
|||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getMinimalPrice()
|
||||
public function getMinimalPrice($qty = null)
|
||||
{
|
||||
$minPrices = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,30 @@
|
|||
{!! view_render_event('bagisto.shop.layout.header.locale.before') !!}
|
||||
@php
|
||||
$searchQuery = request()->input();
|
||||
|
||||
if ($searchQuery && ! empty($searchQuery)) {
|
||||
$searchQuery = implode('&', array_map(
|
||||
function ($v, $k) {
|
||||
if (is_array($v)) {
|
||||
return $k. '[]=' . implode('&' . $k . '[]=', $v);
|
||||
} else {
|
||||
return $k . '=' . $v;
|
||||
}
|
||||
},
|
||||
$searchQuery,
|
||||
array_keys($searchQuery)
|
||||
));
|
||||
} else {
|
||||
$searchQuery = false;
|
||||
}
|
||||
@endphp
|
||||
|
||||
{!! view_render_event('bagisto.shop.layout.header.locale.before') !!}
|
||||
<div class="pull-left">
|
||||
<div class="dropdown">
|
||||
|
||||
@php
|
||||
$localeImage = null;
|
||||
@endphp
|
||||
|
||||
@foreach (core()->getCurrentChannel()->locales as $locale)
|
||||
@if ($locale->code == app()->getLocale())
|
||||
@php
|
||||
|
|
@ -30,9 +49,9 @@
|
|||
@endif>
|
||||
|
||||
@foreach (core()->getCurrentChannel()->locales as $locale)
|
||||
@if (isset($serachQuery))
|
||||
@if (isset($searchQuery) && $searchQuery)
|
||||
<option
|
||||
value="?{{ $serachQuery }}&locale={{ $locale->code }}"
|
||||
value="?{{ $searchQuery }}&locale={{ $locale->code }}"
|
||||
{{ $locale->code == app()->getLocale() ? 'selected' : '' }}>
|
||||
{{ $locale->name }}
|
||||
</option>
|
||||
|
|
@ -59,8 +78,8 @@
|
|||
class="btn btn-link dropdown-toggle control locale-switcher styled-select"
|
||||
onchange="window.location.href = this.value">
|
||||
@foreach (core()->getCurrentChannel()->currencies as $currency)
|
||||
@if (isset($serachQuery))
|
||||
<option value="?{{ $serachQuery }}¤cy={{ $currency->code }}" {{ $currency->code == core()->getCurrentCurrencyCode() ? 'selected' : '' }}>{{ $currency->code }}</option>
|
||||
@if (isset($searchQuery) && $searchQuery)
|
||||
<option value="?{{ $searchQuery }}¤cy={{ $currency->code }}" {{ $currency->code == core()->getCurrentCurrencyCode() ? 'selected' : '' }}>{{ $currency->code }}</option>
|
||||
@else
|
||||
<option value="?currency={{ $currency->code }}" {{ $currency->code == core()->getCurrentCurrencyCode() ? 'selected' : '' }}>{{ $currency->code }}</option>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue